SMAHA04420_판정관리[채용건진].xrw 90 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHR00500.xrw
  4. * 설 명 : 종합건진 종합판정관리
  5. * 설 계 자 : 손주연
  6. * 작 성 자 : 손주연
  7. * 작 성 일 : 2007.10.01
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  13. <xhtml:head>
  14. <xhtml:title>종합판정관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <judgdetl>
  20. <rsltlst>
  21. <item>
  22. <testnm/>
  23. <rslt1/>
  24. <judgrsltcnts1/>
  25. <rslt2/>
  26. <judgrsltcnts2/>
  27. <rslt3/>
  28. <judgrsltcnts3/>
  29. <rsltunit/>
  30. <stndval/>
  31. <testcd/>
  32. <execprcpuniqno/>
  33. <prcpdd/>
  34. </item>
  35. <itemtext>
  36. <testnm/>
  37. <testcd/>
  38. <rslt1/>
  39. <rslt2/>
  40. <rslt3/>
  41. <execprcpuniqno/>
  42. <prcpdd/>
  43. </itemtext>
  44. <rslttextinfo>
  45. <rslt1/>
  46. <rslt2/>
  47. <rslt3/>
  48. <orddd1/>
  49. <orddd2/>
  50. <orddd3/>
  51. </rslttextinfo>
  52. <itemorddd>
  53. <orddd1/>
  54. <orddd2/>
  55. <orddd3/>
  56. <hopedd1/>
  57. <hopedd2/>
  58. <hopedd3/>
  59. </itemorddd>
  60. </rsltlst>
  61. <judginfo>
  62. <judg>
  63. <judg1>
  64. <judgflag/>
  65. <judgcntsa/>
  66. <judgcntsb/>
  67. </judg1>
  68. <judg2>
  69. <judgflag/>
  70. <judgcntsa/>
  71. <judgcntsb/>
  72. </judg2>
  73. <judgchest>
  74. <judgchestflag/>
  75. <judgchestflag2/>
  76. </judgchest>
  77. <judgdd/>
  78. <judgdrid/>
  79. <judgdept/>
  80. </judg>
  81. <medinqr>
  82. <judginqrnm/>
  83. <judgrsltcnts/>
  84. <judgremcnts/>
  85. <judginqrflag/>
  86. <judginqrcd/>
  87. <judgrsltcd/>
  88. <answcdflag/>
  89. <stat/>
  90. <lrgrsltyn/>
  91. </medinqr>
  92. <judginqr>
  93. <judginqrnm/>
  94. <judgrsltcnts/>
  95. <judgremcnts/>
  96. <judginqrflag/>
  97. <judginqrcd/>
  98. <judgrsltcd/>
  99. <answcdflag/>
  100. <stat/>
  101. <lrgrsltyn/>
  102. </judginqr>
  103. <apntinqr>
  104. <judginqrnm/>
  105. <judgrsltcnts/>
  106. <judgremcnts/>
  107. <judginqrflag/>
  108. <judginqrcd/>
  109. <judgrsltcd/>
  110. <answcdflag/>
  111. <stat/>
  112. <lrgrsltyn/>
  113. </apntinqr>
  114. <answ>
  115. <judginqr/>
  116. <answcd/>
  117. <answcnts/>
  118. </answ>
  119. </judginfo>
  120. <medinfo>
  121. <item>
  122. <meddd/>
  123. <meddrid/>
  124. <medtm/>
  125. </item>
  126. <past>
  127. <medinqrnm/>
  128. <medrsltcnts/>
  129. <medremcnts/>
  130. <medinqrflag/>
  131. <medinqrcd/>
  132. <medrsltcd/>
  133. <answcdflag/>
  134. <stat/>
  135. </past>
  136. <body>
  137. <medinqrnm/>
  138. <medrsltcnts/>
  139. <medremcnts/>
  140. <medinqrflag/>
  141. <medinqrcd/>
  142. <medrsltcd/>
  143. <answcdflag/>
  144. <stat/>
  145. </body>
  146. <socl>
  147. <medinqrnm/>
  148. <medrsltcnts/>
  149. <medremcnts/>
  150. <medinqrflag/>
  151. <medinqrcd/>
  152. <medrsltcd/>
  153. <answcdflag/>
  154. <stat/>
  155. </socl>
  156. <famy>
  157. <medinqrnm/>
  158. <medrsltcnts/>
  159. <medremcnts/>
  160. <medinqrflag/>
  161. <medinqrcd/>
  162. <medrsltcd/>
  163. <answcdflag/>
  164. <stat/>
  165. </famy>
  166. </medinfo>
  167. </judgdetl>
  168. <judgpatlst>
  169. <item>
  170. <statflag/>
  171. <hopedd/>
  172. <hngnm/>
  173. <engnm/>
  174. <pid/>
  175. <visano/>
  176. <sex/>
  177. <age/>
  178. <pkgnm/>
  179. <pkgcd/>
  180. <acptremcnts/>
  181. <rsrvdd/>
  182. <rsrvno/>
  183. <cretno/>
  184. <brthareacnts/>
  185. <orddd/>
  186. <rsrvtm/>
  187. <rgstno1/>
  188. <rgstno2/>
  189. <healexamflag/>
  190. <healexamdetlflag/>
  191. <judgdd/>
  192. <judgdrid/>
  193. <judgdd2/>
  194. <judgdrid2/>
  195. <judgstat/>
  196. </item>
  197. </judgpatlst>
  198. <prntinfo>
  199. <prnt>
  200. <etc/>
  201. <phil/>
  202. <pat/>
  203. </prnt>
  204. </prntinfo>
  205. </main>
  206. <send>
  207. <srchhealexamflag/>
  208. <srchhealexamdetlflag/>
  209. <srchjudgdrid/>
  210. <srchfromdd/>
  211. <srchtodd/>
  212. <srchpid/>
  213. <srchorddd/>
  214. <srchpnm/>
  215. <srchrsrvdd/>
  216. <srchrsrvno/>
  217. <srchinstcd/>
  218. <srchstatflag/>
  219. <srchcretno/>
  220. <iemr/>
  221. <savedata>
  222. </savedata>
  223. <inqrflag/>
  224. </send>
  225. <init>
  226. <baseinfo>
  227. <choiflaglst/>
  228. <rslttypelst/>
  229. <plceflag/>
  230. <rsltcnstflaglst/>
  231. <pamcdlst>
  232. <uncocdlst/>
  233. <disccdlst/>
  234. </pamcdlst>
  235. <inqrflag/>
  236. <statlst/>
  237. <hedetlflaglst>
  238. <item/>
  239. </hedetlflaglst>
  240. <chedetlflaglst/>
  241. <ghedetlflaglst/>
  242. <meddrlst>
  243. <itemdr/>
  244. </meddrlst>
  245. <judgdrlst>
  246. <itemdr/>
  247. </judgdrlst>
  248. <fstjudglst/>
  249. <sendjudglst/>
  250. <chestjudglst/>
  251. <initaddrinfo/>
  252. <printinfolist>
  253. </printinfolist>
  254. </baseinfo>
  255. <send>
  256. <srchhealexamdetlflag/>
  257. <srchjudgdrid/>
  258. <srchfromdd/>
  259. <srchtodd/>
  260. <srchpid/>
  261. <srchpnm/>
  262. <srchhealexamdetlflag2/>
  263. <srchrsrvdd/>
  264. <srchstatflag>1</srchstatflag>
  265. <srchpid2/>
  266. <srchpnm2/>
  267. <srchsex/>
  268. <srchage/>
  269. <srchpkgnm/>
  270. <info/>
  271. <item2>
  272. <pid/>
  273. <hngnm/>
  274. <sex/>
  275. <age/>
  276. <pkgcd/>
  277. <pkgnm/>
  278. <hopedd/>
  279. <rsrvdd/>
  280. <rsrvno/>
  281. <healexamflag/>
  282. <healexamdetlflag/>
  283. <orddd/>
  284. <cretno/>
  285. <brthareacnts/>
  286. <medseq/>
  287. <meddd/>
  288. <meddrid/>
  289. <medtm/>
  290. <remedyn/>
  291. <execflag/>
  292. <histyn/>
  293. <remcnts/>
  294. </item2>
  295. </send>
  296. <drlst>
  297. <itemdr/>
  298. </drlst>
  299. </init>
  300. <hidden>
  301. <answlst>
  302. <item/>
  303. </answlst>
  304. <count/>
  305. <signinfo>
  306. <img>
  307. <signdata/>
  308. </img>
  309. </signinfo>
  310. </hidden>
  311. <temp>
  312. <okflag/>
  313. <histlst>
  314. <item>
  315. <histinfo/>
  316. <rsrvdd/>
  317. <rsrvno/>
  318. </item>
  319. </histlst>
  320. <judgdetl>
  321. <judginfo/>
  322. </judgdetl>
  323. <patinfo>
  324. <item/>
  325. </patinfo>
  326. </temp>
  327. </root>
  328. </instance>
  329. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  330. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  331. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  332. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  333. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  334. <script type="javascript" src="../../../ast/healthexamrsrvacptweb/js/AHA.js"/>
  335. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  336. <script type="javascript" src="../../../com/pacsweb/js/ZEP001.js"/>
  337. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  338. <script type="javascript" ev:event="xforms-ready">
  339. <![CDATA[
  340. if( checkOpener() ){
  341. var sFlag = opener.javascript.getParameter("SMAHA04410_PARAM1");
  342. if(sFlag == "") {
  343. m_vHealexamflag = "G"
  344. m_vHealexamdetlflag = "G02"
  345. }else {
  346. m_vHealexamflag = sFlag.substr(0,1);
  347. m_vHealexamdetlflag = sFlag;
  348. }
  349. var sPid = opener.javascript.getParameter("SMAHA04410_PARAM2");
  350. if( sPid != "" ){
  351. btn_judg.selected = true;
  352. model.setValue( ipt_srchpid2.attribute("ref"), sPid);
  353. if( checkAuth("R") ) {
  354. //건진자 정보 조회
  355. fGetPatinfoWithPid(sPid);
  356. }
  357. }
  358. var sOrdDD = opener.javascript.getParameter("SMAHA04410_PARAM3");
  359. var sCretno = opener.javascript.getParameter("SMAHA04410_PARAM4");
  360. var sNd = cmb_srchrsrvdd.choices.itemset.attribute("nodeset") ;
  361. var nodelist = instance1.selectNodes(sNd);
  362. for(var i=0; i < nodelist.length; i++) {
  363. var desPid = nodelist.item(i).pid.text;
  364. var desOrd = nodelist.item(i).orddd.text;
  365. var desCretno = nodelist.item(i).cretno.text;
  366. if(desPid == sPid && desOrd == sOrdDD && desCretno == sCretno) {
  367. copyNodesetType("/root/init/send/info" , sNd + "[" + (i + 1) + "]" , "replace");
  368. model.setValue(cmb_srchrsrvdd.attribute("ref") ,nodelist.item(i).rsrvdd.text);
  369. fGetJudgDetlInfo( nodelist.item(i).rsrvdd.text
  370. , nodelist.item(i).rsrvno.text
  371. , nodelist.item(i).pkgnm.text
  372. , sPid, sOrdDD , sCretno );
  373. break;
  374. }
  375. }
  376. model.toggle("case_judg");
  377. model.toggle("case_prnt");
  378. btn_judgtab1.dispatch("onclick");
  379. }
  380. fGetBasicCdList();
  381. fSetJudgDr(); // 판정의 셋팅
  382. fSrchInit();
  383. addComboItem("cmb_meddr","--진찰의--","","above");
  384. addComboItem("cmb_judgdr","--판정의--","","above");
  385. cmb_meddr.select(0);
  386. btn_search.disabled = !checkAuth("R");
  387. btn_search2.disabled = !checkAuth("R");
  388. btn_clear.disabled = !checkAuth("X");
  389. model.toggle("case_hng");
  390. if( checkAuth("R") ) {
  391. fGetJudgPatList();
  392. }
  393. // 환자정보 삭제 common.js
  394. delPatientInfos();
  395. ]]>
  396. </script>
  397. <submission id="TRZBC00101"/>
  398. <submission id="TRAHA00001"/>
  399. <submission id="TRAHA00002"/>
  400. <submission id="TRAHA00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/baseinfo/pamcdlst"/>
  401. <submission id="TRAHA04016" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/histlst"/>
  402. <submission id="TRAHB00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/baseinfo/item"/>
  403. <submission id="TRAHA04011" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/patinfo"/>
  404. <submission id="TRAHA04411" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsltpatlst"/>
  405. <submission id="TRAHA04412" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" replace="instance" resultref="/root/temp/judgdetl/judginfo"/>
  406. <submission id="TRAHA04421" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" replace="instance" resultref="/root/temp/judgdetl/judginfo"/>
  407. <submission id="TRAHA04413" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" replace="instance" resultref="/root/main/judgdetl/rsltlst"/>
  408. <submission id="TRAHA04414" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" replace="instance" resultref="/root/main/judgdetl/medinfo"/>
  409. <submission id="TRAHA04415" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/judgdetl/rsltlst" replace="instance"/>
  410. <submission id="TRAHA04416" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/inqrinfo"/>
  411. <submission id="TRAHA04418" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" resultref="/root/main/prntinfo/prnt"/>
  412. <submission id="TRAHA03174" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/signinfo"/>
  413. <submission id="TXAHA04411" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/count"/>
  414. <submission id="TXAHA04412" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/hidden/count"/>
  415. <submission id="TXAHA04415" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init/send/info" replace="instance" resultref="/root/hidden/count"/>
  416. <submission id="TRAHA03133" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/drlst"/>
  417. <submission id="TXAHA04421" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" replace="instance" resultref="/root/temp/medinfo"/>
  418. </model>
  419. <script type="javascript">
  420. <![CDATA[
  421. var m_vHealexamflag = "";
  422. var m_vHealexamdetlflag = "";
  423. var m_vHealexamstatflag = "";
  424. var col_hngnm = grd_judgpatlst.colRef("hngnm");
  425. var col_engnm = grd_judgpatlst.colRef("engnm");
  426. var col_pid = grd_judgpatlst.colRef("pid");
  427. var col_sex = grd_judgpatlst.colRef("sex");
  428. var col_age = grd_judgpatlst.colRef("age");
  429. var col_stat = grd_judgpatlst.colRef("statflag");
  430. var col_ordtm = grd_judgpatlst.colRef("ordtm");
  431. var col_orddd = grd_judgpatlst.colRef("orddd");
  432. var col_pkgcd = grd_judgpatlst.colRef("pkgcd");
  433. var col_pkgnm = grd_judgpatlst.colRef("pkgnm");
  434. var col_cmpycd= grd_judgpatlst.colRef("cmpycd");
  435. var col_cmpynm= grd_judgpatlst.colRef("cmpynm");
  436. var col_hopedd = grd_judgpatlst.colRef("hopedd");
  437. var col_rsrvtm = grd_judgpatlst.colRef("rsrvtm");
  438. var col_judgdd = grd_judgpatlst.colRef("judgdd");
  439. var col_judgtm = grd_judgpatlst.colRef("judgtm");
  440. var col_judgdrid = grd_judgpatlst.colRef("judgdrid");
  441. var col_acptremcnts = grd_judgpatlst.colRef("acptremcnts");
  442. var col_rsrvdd = grd_judgpatlst.colRef("rsrvdd");
  443. var col_rsrvno = grd_judgpatlst.colRef("rsrvno");
  444. var col_cretno = grd_judgpatlst.colRef("cretno");
  445. var col_rgstno1 = grd_judgpatlst.colRef("rgstno1");
  446. var col_rgstno2 = grd_judgpatlst.colRef("rgstno2");
  447. /**===================================================================================
  448. *초기화
  449. * bDetl => true : 건진자별 상세내역만 초기화
  450. =====================================================================================*/
  451. function fInit(bDetl){
  452. model.removeNodeset(grd_rsltlst.nodeset);
  453. model.removeNodeset(grd_rslttextlst.nodeset);
  454. // model.removeNodeset(grd_medpast.nodeset);
  455. // model.removeNodeset(grd_medbody.nodeset);
  456. // model.removeNodeset(grd_medsocl.nodeset);
  457. // model.removeNodeset(grd_medfamy.nodeset);
  458. model.resetInstanceNode(grd_judginqrlst.nodeset);
  459. model.resetInstanceNode("/root/main/judgdetl/medinfo/item");
  460. model.resetInstanceNode("/root/main/judgdetl/judginfo/judg/judg1");
  461. model.resetInstanceNode("/root/main/judgdetl/judginfo/judg/judg2");
  462. model.resetInstanceNode("/root/main/judgdetl/judginfo/judg");
  463. model.resetInstanceNode("/root/main/judgdetl/rsltlst/rslttextinfo");
  464. model.resetInstanceNode("/root/main/judgdetl/rsltlst/itemorddd");
  465. model.resetInstanceNode("/root/init/send/info");
  466. model.resetInstanceNode("/root/temp/histlst/item");
  467. model.setValue("/root/init/send/srchhealexamdetlflag2" ,"");
  468. model.setValue("/root/init/send/srchrsrvdd" ,"");
  469. model.setValue("/root/init/send/srchpid2" ,"");
  470. model.setValue("/root/init/send/srchpnm2" ,"");
  471. model.setValue("/root/init/send/srchsex" ,"");
  472. model.setValue("/root/init/send/srchage" ,"");
  473. model.setValue("/root/init/send/srchpkgnm" ,"");
  474. var cur_date = getCurrentDate();
  475. model.makeValue(ipt_judgdd.attribute("ref") , cur_date);
  476. model.makeValue(ipt_meddd.attribute("ref") , cur_date);
  477. if( bDetl) {
  478. model.refresh();
  479. return false;
  480. }
  481. model.removeNodeset(grd_judgpatlst.nodeset);
  482. model.refresh();
  483. }
  484. /**===================================================================================
  485. ** 조회조건 초기화
  486. =====================================================================================*/
  487. function fSrchInit(){
  488. cmb_srchhealexamdetlflag.refresh();
  489. cmb_srchhealexamdetlflag.value = m_vHealexamdetlflag;
  490. cmb_srchhealexamdetlflag2.refresh();
  491. cmb_srchhealexamdetlflag2.value = m_vHealexamdetlflag;
  492. var cur_date = getCurrentDate();
  493. model.setValue(ipt_srchfromdd.attribute("ref") , cur_date);
  494. model.setValue(ipt_srchtodd.attribute("ref") , cur_date);
  495. }
  496. /**===================================================================================
  497. *기본코드 내역 가져오기
  498. =====================================================================================*/
  499. function fGetBasicCdList(){
  500. if(!checkOpener() ){
  501. model.toggle("case_pat");
  502. btn_patlst.selected= true;
  503. if( m_vHealexamflag == "" ) {
  504. var sFlag = getScreenMenuParameter();
  505. if(sFlag == "") {
  506. m_vHealexamflag = "G"
  507. m_vHealexamdetlflag = "G02"
  508. }else {
  509. m_vHealexamflag = sFlag.substr(0,1);
  510. m_vHealexamdetlflag = sFlag.substr(0,3);
  511. if (sFlag.length > 3) {
  512. m_vHealexamstatflag = sFlag.substr(3,1);
  513. }
  514. }
  515. }
  516. }
  517. openLoadingBar("기초정보 "); //처리중 화면을 오픈한다.
  518. zbcfGetCodeList( new Array("A0069","A0070", "A0066","A0110","A0106", "A0107", "A0123")
  519. , new Array( "/root/init/baseinfo/chedetlflaglst"
  520. ,"/root/init/baseinfo/ghedetlflaglst"
  521. , "/root/init/baseinfo/rslttypelst"
  522. , "/root/init/baseinfo/plceflag"
  523. , "/root/init/baseinfo/inqrflag"
  524. , "/root/init/baseinfo/statlst"
  525. , "/root/init/baseinfo/rsltcnstflaglst" ) );
  526. submit("TRZBC00101");
  527. healGetCodeList( new Array("V005","V006","V007","R001")
  528. , new Array("/root/init/baseinfo/fstjudglst"
  529. ,"/root/init/baseinfo/sendjudglst"
  530. ,"/root/init/baseinfo/chestjudglst"
  531. ,"/root/init/baseinfo/initaddrinfo") );
  532. healGetCodeListSubmit( new Array("R002")
  533. , new Array("/root/init/baseinfo/printinfolist"), false);
  534. model.removeNodeset("/root/init/baseinfo/fstjudglst/V005[1]");
  535. model.removeNodeset("/root/init/baseinfo/sendjudglst/V006[1]");
  536. model.removeNodeset("/root/init/baseinfo/chestjudglst/V007[1]");
  537. model.makeValue("/root/init/addrinfo/CF1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CF1']/cdnm"));
  538. model.makeValue("/root/init/addrinfo/CP1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP1']/cdnm"));
  539. model.makeValue("/root/init/addrinfo/CP2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'CP2']/cdnm"));
  540. model.makeValue("/root/init/addrinfo/E01", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E01']/cdnm"));
  541. model.makeValue("/root/init/addrinfo/E02", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E02']/cdnm"));
  542. model.makeValue("/root/init/addrinfo/E03", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E03']/cdnm"));
  543. model.makeValue("/root/init/addrinfo/E04", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'E04']/cdnm"));
  544. model.makeValue("/root/init/addrinfo/K01", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K01']/cdnm"));
  545. model.makeValue("/root/init/addrinfo/K02", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K02']/cdnm"));
  546. model.makeValue("/root/init/addrinfo/K03", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K03']/cdnm"));
  547. model.makeValue("/root/init/addrinfo/K04", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'K04']/cdnm"));
  548. model.makeValue("/root/init/addrinfo/PV1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'PV1']/cdnm"));
  549. model.makeValue("/root/init/addrinfo/PV2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'PV2']/cdnm"));
  550. model.makeValue("/root/init/addrinfo/VF1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid = 'VF1']/cdnm"));
  551. model.makeValue("/root/init/addrinfo/logoimg", getImageURL("cmc"));
  552. // 건진구분 조회
  553. if(m_vHealexamflag == "C") {
  554. copyNodesetType("/root/init/baseinfo/hedetlflaglst/item","/root/init/baseinfo/chedetlflaglst/A0069", "replace");
  555. }else {
  556. copyNodesetType("/root/init/baseinfo/hedetlflaglst/item","/root/init/baseinfo/ghedetlflaglst/A0070", "replace");
  557. }
  558. if (m_vHealexamstatflag != "" ) {
  559. if (m_vHealexamstatflag == "1") {
  560. model.setValue("/root/send/inqrflag","F");
  561. model.toggle("case_med");
  562. btn_med.dispatch("onclick");
  563. } else if (m_vHealexamstatflag == "2") {
  564. model.setValue("/root/send/inqrflag","G");
  565. model.toggle("case_prnt");
  566. btn_prnt.dispatch("onclick");
  567. }
  568. }
  569. //판정의조회
  570. model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
  571. model.setValue("/root/send/srchhealexamdetlflag", m_vHealexamdetlflag);
  572. model.setValue("/root/init/send/srchstatflag", "1");
  573. model.makeValue("/root/send/srchdrflag" , "J" );
  574. submit("TRAHA03133");
  575. copyNodesetType("/root/init/baseinfo/judgdrlst/itemdr" , "/root/init/drlst/itemdr" , "replace");
  576. // 진찰의 조회
  577. model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
  578. model.setValue("/root/send/srchhealexamdetlflag" , m_vHealexamdetlflag);
  579. model.makeValue("/root/send/srchdrflag" , "M" );
  580. submit("TRAHA03133");
  581. copyNodesetType("/root/init/baseinfo/meddrlst/itemdr" , "/root/init/drlst/itemdr" , "replace");
  582. closeLoadingBar() ;//처리중 화면을 close한다.
  583. }
  584. /**===================================================================================
  585. @desc : 판정입력대상자 가져오기
  586. @param : 건진구분/건진일자/환자id별 조회
  587. =====================================================================================*/
  588. function fGetJudgPatList(){
  589. openLoadingBar("판정 대상 건진자리스트") ;//처리중 화면을 오픈한다.
  590. model.removeNodeset(grd_judgpatlst.nodeset);
  591. //model.resetInstanceNode("/root/send");
  592. model.setValue("/root/send/srchhealexamdetlflag" , model.getValue("/root/init/send/srchhealexamdetlflag") );
  593. model.setValue("/root/send/srchpid" , model.getValue(ipt_pid.attribute("ref") ) );
  594. model.setValue("/root/send/srchpnm" , model.getValue(ipt_pnm.attribute("ref") ) );
  595. model.setValue("/root/send/srchfromdd" , model.getValue("/root/init/send/srchfromdd") );
  596. model.setValue("/root/send/srchtodd" , model.getValue("/root/init/send/srchtodd") );
  597. model.setValue("/root/send/srchjudgdrid" , model.getValue(cmb_srchjudgdrid.attribute("ref")));
  598. model.setValue("/root/send/srchstatflag" , model.getValue(cmb_statflag.attribute("ref")));
  599. model.setValue("/root/send/srchinstcd" , getUserInfo("dutplceinstcd") );
  600. model.setValue("/root/send/srchhealexamflag", m_vHealexamflag);
  601. submit("TRAHA04411");
  602. closeLoadingBar() ;//처리중 화면을 close한다.
  603. }
  604. /**===================================================================================
  605. @desc : 판정정보조회(판정대기자 선택시 종합판정입력tab이동)
  606. @param : healexamflag, pid, rsrvdd, rsrvno
  607. =====================================================================================*/
  608. function fGetJudgInfo(){
  609. var idx = grd_judgpatlst.row;
  610. if( idx < 1) return ;
  611. var vPid = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("pid"));
  612. if( vPid == "" ) return ;
  613. //tab이동
  614. fInit(true);
  615. var vRsrvdd = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("rsrvdd"));
  616. var vRsrvno = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("rsrvno"));
  617. var vOrdDD = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("orddd"));
  618. var vJudgStat = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("judgstat"));
  619. var vHealexamFlag = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("healexamflag"));
  620. var vHealexamDetlFlag = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("healexamdetlflag"));
  621. var vCretno = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("cretno"));
  622. var vSex = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("sex"));
  623. var vAge = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("age"));
  624. var vPkgnm = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("pkgnm"));
  625. var vHopedd = grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("hopedd"));
  626. cmb_srchhealexamdetlflag2.value = vHealexamDetlFlag
  627. model.setValue(ipt_srchpid2.attribute("ref"), vPid );
  628. model.setValue(ipt_srchpnm2.attribute("ref"), grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("hngnm")));
  629. model.setValue(opt_sex.attribute("ref"), vSex);
  630. model.setValue(opt_age.attribute("ref"), vAge);
  631. model.setValue(opt_pkgnm.attribute("ref"), vPkgnm);
  632. model.setValue(cmb_srchrsrvdd.attribute("ref") , vRsrvdd);
  633. model.setValue("/root/send/inqrflag", "F");
  634. copyNodesetType("/root/init/send/info" , grd_judgpatlst.nodeset + "[" + idx + "]" , "replace");
  635. model.setValue("/root/send/inqrflag","G");
  636. model.toggle("case_prnt");
  637. btn_judg.dispatch("onclick");
  638. btn_judg.refresh();
  639. // if(vJudgStat == "0") { // 판정대기
  640. // btn_judgtab1.dispatch("onclick");
  641. // }else if(vJudgStat == "1") { // 1차판정
  642. // btn_judgtab1.dispatch("onclick");
  643. // }else if(vJudgStat == "2") { // 2차판정
  644. // btn_judgtab2.dispatch("onclick");
  645. // }
  646. //해당환자의 건진history조회
  647. ahafGetHistList2(vPid, cmb_srchhealexamdetlflag.value , "E");
  648. //화면상단 환자정보 조회
  649. //ahafSetScreenTopPatInfo( vPid , vOrdDD , grd_judgpatlst.valueMatrix(idx, grd_judgpatlst.colRef("cretno")) );
  650. model.refresh();
  651. // 결과 판정값 체크
  652. // fRsltJudgChk();
  653. //var nodeList = instance1.selectNodes("/root/temp/histlst/item[orddd='"+ vOrdDD + "' and pid='" + vPid + "' and cretno='"+ vCretno + "']" );
  654. var sNd = cmb_srchrsrvdd.choices.itemset.attribute("nodeset") ;
  655. var nodelist = instance1.selectNodes(sNd);
  656. for(var i=0; i < nodelist.length; i++) {
  657. var desPid = nodelist.item(i).pid.text;
  658. var desOrd = nodelist.item(i).orddd.text;
  659. var desCretno = nodelist.item(i).cretno.text;
  660. if(desPid == vPid && desOrd == vOrdDD && desCretno == vCretno) {
  661. cmb_srchrsrvdd.selected = true;
  662. fGetJudgDetlInfo( vRsrvdd, vRsrvno , vPkgnm, vPid, vOrdDD , vCretno );
  663. break;
  664. }
  665. }
  666. }
  667. /**===================================================================================
  668. @desc : 판정정보상세내역 조회
  669. @param : healexamflag, rsrvdd, rsrvno , instcd
  670. =====================================================================================*/
  671. function fGetJudgDetlInfo(vRsrvdd, vRsrvno , vPkgnm , vPid, vOrdDD , vCretno){
  672. grp_answ.visible = false;
  673. model.setValue("/root/send/srchhealexamflag" ,m_vHealexamflag );
  674. model.setValue("/root/send/srchhealexamdetlflag" ,model.getValue(cmb_srchhealexamdetlflag.attribute("ref")) );
  675. model.setValue("/root/init/send/srchhealexamdetlflag2" ,model.getValue("/root/init/send/info/healexamdetlflag") );
  676. model.setValue("/root/send/srchrsrvdd" ,vRsrvdd );
  677. model.setValue("/root/send/srchrsrvno" ,vRsrvno );
  678. model.setValue("/root/send/srchinstcd" ,getUserInfo("dutplceinstcd") );
  679. model.setValue("/root/send/srchpid" ,vPid );
  680. model.setValue("/root/send/srchorddd" ,vOrdDD );
  681. model.setValue("/root/send/srchcretno" ,vCretno );
  682. model.setValue("/root/init/send/srchpkgnm" ,vPkgnm);
  683. openLoadingBar("판정 정보") ;//처리중 화면을 오픈한다.
  684. var ret = submit("TRAHA04413");
  685. // 결과 판정값 체크
  686. fRsltJudgChk();
  687. var vRsltCaption = "처방명칭" + "^" + cap_year1.value + "^" + "판정" + "^" + cap_year2.value + "^" + "판정" + "^" + cap_year3.value + "^" + "판정" + "^" + "단위" + "^" + "기준" ;
  688. grd_rsltlst.caption = vRsltCaption ;
  689. // 판정정보 조회
  690. fGetJudglst("A");
  691. // 진찰내역 조회
  692. fGetMedlst();
  693. closeLoadingBar() ;//처리중 화면을 close 한다.
  694. /*
  695. if( ret == true ){
  696. var retNode = model.instance1.selectSingleNode("/root/temp/judginfo/item/judgdrid");
  697. if( retNode != null ){
  698. model.copyNode("/root/main/judgdetl/judginfo","/root/temp/judginfo");
  699. }
  700. }
  701. // 판정의 체크
  702. var judgDr = model.getValue("/root/main/judgdetl/judginfo/item/judgdrid"); // 판정등록한 판정의
  703. var logJudgDr = model.getValue("/root/hidden/judgdr"); // 로그인 한 판정의
  704. if (judgDr == "") {
  705. // 등록한 판정의가 없을경우
  706. if(logJudgDr != "") {
  707. // 로그인 한 판정의가 있을 경우
  708. model.setValue("/root/main/judgdetl/judginfo/item/judgdrid" , logJudgDr);
  709. } else {
  710. model.setValue("/root/main/judgdetl/judginfo/item/judgdrid" , model.property("judgdr"));
  711. }
  712. } else {
  713. // 등록 된 판정의와 로그인 한 판정의가 다를 경우
  714. if(judgDr != logJudgDr) {
  715. if(logJudgDr != "") {
  716. // 로그인한 판정의가 존재할 경우
  717. var judgDrNm = "";
  718. var logJudgDrNm = ""
  719. // 이름 찾기
  720. for(var i=0; i < cmb_judgdr.length; i++) {
  721. if(cmb_judgdr.item(i).value == judgDr ) { judgDrNm = cmb_judgdr.item(i).label};
  722. if(cmb_judgdr.item(i).value == logJudgDr ) {logJudgDrNm = cmb_judgdr.item(i).label};
  723. }
  724. var vb = messageBox("판정의를 [" + judgDrNm + "]에서 [" + logJudgDrNm + "]로 변경" ,"S001");
  725. if(vb == "6") {
  726. // Yes
  727. model.setValue("/root/main/judgdetl/judginfo/item/judgdrid" , logJudgDr);
  728. }
  729. }
  730. }
  731. }
  732. */
  733. model.refresh();
  734. }
  735. /**===================================================================================
  736. @desc : 판정정보상세내역 조회
  737. =====================================================================================*/
  738. function fSetJugeInqr() {
  739. model.resetInstanceNode("/root/main/judgdetl/judginfo/judginqr");
  740. model.resetInstanceNode("/root/main/judgdetl/judginfo/apntinqr");
  741. model.resetInstanceNode("/root/main/judgdetl/judginfo/medinqr");
  742. model.resetInstanceNode("/root/main/judgdetl/judginfo/answ");
  743. // 판정
  744. copyNodesetType("/root/main/judgdetl/judginfo/judginqr" , "/root/temp/judgdetl/judginfo/judginqr" , "replace");
  745. // 문진
  746. copyNodesetType("/root/main/judgdetl/judginfo/apntinqr" , "/root/temp/judgdetl/judginfo/apntinqr" , "replace");
  747. // 진찰
  748. copyNodesetType("/root/main/judgdetl/judginfo/medinqr" , "/root/temp/judgdetl/judginfo/medinqr" , "replace");
  749. //판정문진 답변코드
  750. copyNodesetType("/root/main/judgdetl/judginfo/answ" , "/root/temp/judgdetl/judginfo/answ" , "replace");
  751. fSetJudgInqrStat();
  752. }
  753. /**===================================================================================
  754. @desc : 판정정보상세내역 조회
  755. =====================================================================================*/
  756. function fSetJudgInfo() {
  757. // 판정내역
  758. var judgstat = model.getValue("/root/temp/judgdetl/judginfo/judg/judgstat");
  759. var judgflag1 = model.getValue("/root/temp/judgdetl/judginfo/judg/judgflag1");
  760. var judgcnts1 = model.getValue("/root/temp/judgdetl/judginfo/judg/judgcnts1");
  761. var judgflag2 = model.getValue("/root/temp/judgdetl/judginfo/judg/judgflag2");
  762. var judgcnts2 = model.getValue("/root/temp/judgdetl/judginfo/judg/judgcnts2");
  763. var judgchestflag = model.getValue("/root/temp/judgdetl/judginfo/judg/judgchestflag");
  764. var judgchestflag2 = model.getValue("/root/temp/judgdetl/judginfo/judg/judgchestflag2");
  765. model.resetInstanceNode("/root/main/judgdetl/judginfo/judg/judg1");
  766. model.resetInstanceNode("/root/main/judgdetl/judginfo/judg/judg2");
  767. if(judgflag1 != "") {
  768. model.setValue("/root/main/judgdetl/judginfo/judg/judg1/judgflag" , judgflag1);
  769. if(judgflag1 == "A") {
  770. model.setValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsa" , judgcnts1);
  771. }else if(judgflag1 == "B") {
  772. model.setValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsb" , judgcnts1);
  773. }
  774. }
  775. if(judgflag2 != "") {
  776. model.setValue("/root/main/judgdetl/judginfo/judg/judg2/judgflag" , judgflag2);
  777. if(judgflag2 == "A") {
  778. model.setValue("/root/main/judgdetl/judginfo/judg/judg2/judgcntsa" , judgcnts2);
  779. }else if(judgflag2 == "B") {
  780. model.setValue("/root/main/judgdetl/judginfo/judg/judg2/judgcntsb" , judgcnts2);
  781. }
  782. }
  783. // 흉부촬영 판정 등록
  784. model.makeValue("/root/main/judgdetl/judginfo/judg/judgchest/judgchestflag" , judgchestflag );
  785. model.makeValue("/root/main/judgdetl/judginfo/judg/judgchest/judgchestflag2" , judgchestflag2 );
  786. if(judgstat == "0") { // 판정
  787. model.makeValue("/root/main/judgdetl/judginfo/judg/judgdd" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdd"));
  788. model.makeValue("/root/main/judgdetl/judginfo/judg/judgdrid" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdrid"));
  789. // btn_judgtab1.selected = true;
  790. // model.toggle("case_judg1");
  791. // btn_judg1.disabled = false;
  792. // btn_judg2.disabled = true;
  793. }else if(judgstat == "1") { // 1차 판정
  794. model.makeValue("/root/main/judgdetl/judginfo/judg/judgdd" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdd"));
  795. model.makeValue("/root/main/judgdetl/judginfo/judg/judgdrid" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdrid"));
  796. // btn_judgtab1.selected = true;
  797. // model.toggle("case_judg1");
  798. // btn_judg1.disabled = false;
  799. // btn_judg2.disabled = false;
  800. }else if(judgstat =="2") { // 2차판정
  801. model.setValue("/root/main/judgdetl/judginfo/judg/judgdd" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdd2"));
  802. model.setValue("/root/main/judgdetl/judginfo/judg/judgdrid" , model.getValue("/root/temp/judgdetl/judginfo/judg/judgdrid"));
  803. // btn_judgtab2.selected = true;
  804. // model.toggle("case_judg2");
  805. // btn_judg1.disabled = false;
  806. // btn_judg2.disabled = false;
  807. }
  808. }
  809. /**===================================================================================
  810. @desc : 판정내역 조회
  811. @param : 판정저장 : J 판정문진저장 : I 전체 : A
  812. =====================================================================================*/
  813. function fGetJudglst(vFlag) {
  814. if(submit("TRAHA04421")) {
  815. if(vFlag == "A" || vFlag == "I") {
  816. fSetJugeInqr();
  817. }
  818. if(vFlag == "A" || vFlag == "J") {
  819. fSetJudgInfo();
  820. }
  821. }
  822. // if(submit("TRAHA04412")) {
  823. // if(vFlag == "A" || vFlag == "I") {
  824. // fSetJugeInqr();
  825. // }
  826. // if(vFlag == "A" || vFlag == "J") {
  827. // fSetJudgInfo();
  828. // }
  829. // }
  830. }
  831. /**===================================================================================
  832. @desc : 진찰내역 조회
  833. =====================================================================================*/
  834. function fGetMedlst() {
  835. submit("TRAHA04414");
  836. var cnt = getNodesetCount("/root/main/judgdetl/medinfo/item");
  837. if (cnt == 0) {
  838. model.makeValue("/root/main/judgdetl/medinfo/item/meddd", getCurrentDate());
  839. model.makeValue("/root/main/judgdetl/medinfo/item/medtm", getCurrentTime().substring(0,4));
  840. model.makeValue("/root/main/judgdetl/medinfo/item/meddrid", "");
  841. model.makeValue("/root/main/judgdetl/medinfo/item/remedyn", "N");
  842. model.makeValue("/root/main/judgdetl/medinfo/item/execflag", "N");
  843. }
  844. }
  845. /**===================================================================================
  846. @desc : 판정문진의 답변코드 예문화면을 보이게 한다.
  847. =====================================================================================*/
  848. function fSetAnswVisible(vGrd) {
  849. var idx = vGrd.row;
  850. var judginqrcd = vGrd.valueMatrix(idx , vGrd.colRef("judginqrcd"));
  851. var judgrsltcnts = vGrd.valueMatrix(idx , vGrd.colRef("judgrsltcnts"));
  852. var answcdflag = vGrd.valueMatrix(idx , vGrd.colRef("answcdflag"));
  853. var inqrflag = model.getValue("/root/send/inqrflag");
  854. if(getNodesetCount("/root/main/judgdetl/judginfo/answ") < 1 ) {
  855. grp_answ.visible = false;
  856. return;
  857. }
  858. model.removeNodeset(grd_answlst.nodeset);
  859. var nodeList = instance1.selectNodes("/root/main/judgdetl/judginfo/answ[judginqrcd = '" + judginqrcd + "' and inqrflag = '" + inqrflag + "' ]");
  860. if(nodeList.length < 1) {
  861. grp_answ.visible = false;
  862. return;
  863. }
  864. var rCSV = getNodeListCSV(nodeList);
  865. setCSVToNode( "/root/hidden/answlst", rCSV ,"item");
  866. grd_answlst.refresh();
  867. if(answcdflag == "O" && nodeList.length > 0) {
  868. grp_answ.visible = true;
  869. } else {
  870. grp_answ.visible = false;
  871. }
  872. }
  873. /**=========================================================================================================================
  874. * 선택형 진찰문진 입력
  875. ===========================================================================================================================*/
  876. function fSetChoiAnsw(vGrd) {
  877. var idx = vGrd.row;
  878. var answcdflag = vGrd.valueMatrix( idx , vGrd.colRef("answcdflag") );
  879. var judginqrcd = vGrd.valueMatrix(idx , vGrd.colRef("judginqrcd"));
  880. var judgrsltcnts = vGrd.valueMatrix(idx , vGrd.colRef("judgrsltcnts"));
  881. if(answcdflag == "O") {
  882. for(var i=1; i<=grd_answlst.rows; i++) {
  883. var inqrcd = grd_answlst.valueMatrix( i , grd_answlst.colRef("judginqrcd"));
  884. var answcd = grd_answlst.valueMatrix( i , grd_answlst.colRef("answcd"));
  885. var answcnts = grd_answlst.valueMatrix( i , grd_answlst.colRef("answcnts"));
  886. if(inqrcd == judginqrcd && answcd == judgrsltcnts ) {
  887. vGrd.valueMatrix(idx , vGrd.colRef("judgrsltcd")) = answcd;
  888. vGrd.valueMatrix(idx , vGrd.colRef("judgrsltcnts")) = answcnts;
  889. grp_answ.visible = false ;
  890. break;
  891. }
  892. }
  893. }
  894. }
  895. /**=========================================================================================================================
  896. * 판정문진 입력상태 셋팅
  897. ===========================================================================================================================*/
  898. function fSetJudgInqrStat() {
  899. grd_judginqrlst.refresh();
  900. grd_judginqrlst.clearStatus();
  901. for(var i=1; i <= grd_judginqrlst.rows; i++ ) {
  902. var stat = grd_judginqrlst.valueMatrix(i , grd_judginqrlst.colRef("stat"));
  903. if(stat == "i") {
  904. grd_judginqrlst.rowStatus(i) = 1;
  905. }
  906. }
  907. grd_apntinqrlst.refresh();
  908. grd_apntinqrlst.clearStatus();
  909. for(var i=1; i <= grd_apntinqrlst.rows; i++ ) {
  910. var stat = grd_apntinqrlst.valueMatrix(i , grd_apntinqrlst.colRef("stat"));
  911. if(stat == "i") {
  912. grd_apntinqrlst.rowStatus(i) = 1;
  913. }
  914. }
  915. grd_medinqrlst.refresh();
  916. grd_medinqrlst.clearStatus();
  917. for(var i=1; i <= grd_medinqrlst.rows; i++ ) {
  918. var stat = grd_medinqrlst.valueMatrix(i , grd_medinqrlst.colRef("stat"));
  919. if(stat == "i") {
  920. grd_medinqrlst.rowStatus(i) = 1;
  921. }
  922. }
  923. }
  924. /**=========================================================================================================================
  925. * 판정문진의 입력서식을
  926. ===========================================================================================================================*/
  927. function fJudgInqrPrint() {
  928. var cnt = getNodesetCount("/root/main/judgdetl/rsltlst/item");
  929. var testcd = "";
  930. var testnm= "";
  931. var codenm= "";
  932. var rslt1 = "";
  933. var rsltformcd = "";
  934. rsltformcd = model.getValue("/root/init/send/info/rsltformcd");
  935. model.makeValue("/root/printinfo/printlist/item/pid", model.getValue("/root/init/send/info/pid"));
  936. model.makeValue("/root/printinfo/printlist/item/hngnm", model.getValue("/root/init/send/info/hngnm"));
  937. model.makeValue("/root/printinfo/printlist/item/rgstno1", model.getValue("/root/init/send/info/rgstno1"));
  938. model.makeValue("/root/printinfo/printlist/item/rgstno2", model.getValue("/root/init/send/info/rgstno2"));
  939. model.makeValue("/root/printinfo/printlist/item/sex", model.getValue("/root/init/send/info/sex"));
  940. model.makeValue("/root/printinfo/printlist/item/age", model.getValue("/root/init/send/info/age"));
  941. model.makeValue("/root/printinfo/printlist/item/hometel", model.getValue("/root/init/send/info/hometel"));
  942. model.makeValue("/root/printinfo/printlist/item/mpphontel", model.getValue("/root/init/send/info/mpphontel"));
  943. model.makeValue("/root/printinfo/printlist/item/pataddr", model.getValue("/root/init/send/info/pataddr"));
  944. model.makeValue("/root/printinfo/printlist/item/judgdrnm", cmb_judgdr.label);
  945. model.makeValue("/root/printinfo/printlist/item/judgdrengnm", model.getValue("/root/temp/judgdetl/judginfo/judg/judgdrengnm"));
  946. model.makeValue("/root/printinfo/printlist/item/licnsno", model.getValue("/root/temp/judgdetl/judginfo/judg/licnsno"));
  947. model.makeValue("/root/printinfo/printlist/item/judgdeptnm", model.getValue("/root/temp/judgdetl/judginfo/judg/judgdeptnm"));
  948. model.makeValue("/root/printinfo/printlist/item/orddd", model.getValue("/root/init/send/info/orddd"));
  949. model.makeValue("/root/printinfo/printlist/item/hopedd", model.getValue("/root/init/send/info/hopedd"));
  950. model.makeValue("/root/printinfo/printlist/item/judgdd", model.getValue("/root/main/judgdetl/judginfo/judg/judgdd"));
  951. model.makeValue("/root/printinfo/printlist/item/instnm", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='K02']/cdnm")); // 의료기관명
  952. model.makeValue("/root/printinfo/printlist/item/enginstnm1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='E01']/cdnm")); // 의료센터(영문)
  953. model.makeValue("/root/printinfo/printlist/item/enginstnm2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='E02']/cdnm")); // 병원명(영문)
  954. model.makeValue("/root/printinfo/printlist/item/engaddr1", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='E03']/cdnm")); // 주소1(영문)
  955. model.makeValue("/root/printinfo/printlist/item/engaddr2", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='E04']/cdnm")); // 주소2(영문)
  956. model.makeValue("/root/printinfo/printlist/item/addr", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='K04']/cdnm")); // 주소
  957. model.makeValue("/root/printinfo/printlist/item/tel", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='PV3']/cdnm")); // 전화번호
  958. model.makeValue("/root/printinfo/printlist/item/fax", model.getValue("/root/init/baseinfo/initaddrinfo/R001[cdid='VF2']/cdnm")); // FAX
  959. var prntCnt = getNodesetCount("/root/init/baseinfo/printinfolist/R002");
  960. // 검사 결과
  961. for(var i=1; i <= cnt; i++ ) {
  962. testcd = model.getValue("/root/main/judgdetl/rsltlst/item[" + i + "]/testcd");
  963. testnm = model.getValue("/root/main/judgdetl/rsltlst/item[" + i + "]/testnm");
  964. rslt1 = model.getValue("/root/main/judgdetl/rsltlst/item[" + i + "]/rslt1");
  965. rsltunit = model.getValue("/root/main/judgdetl/rsltlst/item[" + i + "]/rsltunit");
  966. var chngChk = true;
  967. for(var x=1; x <= prntCnt; x++ ) {
  968. var cmt = model.getValue("/root/init/baseinfo/printinfolist/R002[" + x + "]/cmt");
  969. var cdid = model.getValue("/root/init/baseinfo/printinfolist/R002[" + x + "]/cdid");
  970. if(cmt == testcd) {
  971. chngChk == false;
  972. model.makeValue("/root/printinfo/printlist/item/" + cdid, rslt1);
  973. model.makeValue("/root/printinfo/printlist/item/" + cdid + "nm", testnm);
  974. model.makeValue("/root/printinfo/printlist/item/" + cdid + "rsltunit", rsltunit);
  975. }
  976. }
  977. if(chngChk) {
  978. codenm = model.getValue("/root/init/baseinfo/printinfolist/R002[cdid='" + testcd + "']/cdnm");
  979. model.makeValue("/root/printinfo/printlist/item/" + testcd, rslt1);
  980. model.makeValue("/root/printinfo/printlist/item/" + testcd + "nm", testnm);
  981. model.makeValue("/root/printinfo/printlist/item/" + testcd + "rsltunit", rsltunit);
  982. }
  983. }
  984. // 진찰 문진
  985. cnt = getNodesetCount("/root/main/judgdetl/judginfo/medinqr");
  986. for(var i=1; i <= cnt; i++ ) {
  987. testcd = model.getValue("/root/main/judgdetl/judginfo/medinqr[" + i + "]/judginqrcd");
  988. rslt1 = model.getValue("/root/main/judgdetl/judginfo/medinqr[" + i + "]/judgrsltcnts");
  989. codenm = model.getValue("/root/init/baseinfo/printinfolist/R002[cdid='" + testcd + "']/cdnm");
  990. if (codenm != "") {
  991. model.makeValue("/root/printinfo/printlist/item/" + testcd, rslt1);
  992. }
  993. }
  994. // 판정문진
  995. cnt = getNodesetCount("/root/main/judgdetl/judginfo/judginqr");
  996. for(var i=1; i <= cnt; i++ ) {
  997. testcd = model.getValue("/root/main/judgdetl/judginfo/judginqr[" + i + "]/judginqrcd");
  998. rslt1 = model.getValue("/root/main/judgdetl/judginfo/judginqr[" + i + "]/judgrsltcnts");
  999. codenm = model.getValue("/root/init/baseinfo/printinfolist/R002[cdid='" + testcd + "']/cdnm");
  1000. if (codenm != "") {
  1001. model.makeValue("/root/printinfo/printlist/item/" + testcd, rslt1);
  1002. }
  1003. }
  1004. // 사인 이미지 조회
  1005. model.makeValue("/root/send/srchsignedid" , model.getValue("/root/main/judgdetl/judginfo/judg/judgdrid"));
  1006. if(submit("TRAHA03174")) {
  1007. model.makeNode("/root/printinfo/printlist/item/signdata");
  1008. setImageRefInstance("/root/hidden/signinfo/img/singdata");
  1009. setImageRefInstance("/root/printinfo/printlist/item/signdata");
  1010. copyNodesetType("/root/printinfo/printlist/item/signdata" , "/root/hidden/signinfo/img/signdata" , "replace" );
  1011. setImageRefInstance("/root/printinfo/printlist/item/signdata");
  1012. }
  1013. setParameter("reportprintyn", ""); //출력여부 확인하기
  1014. if (rsltformcd != "") {
  1015. exeReportPreview(rsltformcd, "XMLSTR", "/root/printinfo/printlist/item", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
  1016. if (getParameter("reportprintyn") == "Y"){ // 출력했으면..
  1017. submit("TXAHA04415");
  1018. }
  1019. }
  1020. // setParameter("reportprintyn", ""); //출력여부 확인하기
  1021. // //판정내역
  1022. // var rsrvdd = model.getValue("/root/init/send/srchrsrvdd");
  1023. //
  1024. // if( rsrvdd == "") {
  1025. // messageBox("판정대상내역을 ", "C002");
  1026. // model.setFocus("cmb_srchrsrvdd");
  1027. // return ;
  1028. // }
  1029. //
  1030. // if(submit("TRAHA04418")) {
  1031. // var brthArea = model.getValue("/root/main/prntinfo/prnt/pat/brthareacnts");
  1032. //
  1033. // if(brthArea == "PP") { // 필리핀
  1034. // exeReportPreview("RPAHR04412", "XMLSTR", "", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
  1035. // }else if(brthArea == "ETC"){ // 기타해외
  1036. // exeReportPreview("RPAHR04411", "XMLSTR", "", "", "", "", "", "", "", "","", "", "", "", "", "", "", "printpaper=8;");
  1037. // }
  1038. //
  1039. // if (getParameter("reportprintyn") == "Y"){ // 출력했으면..
  1040. // submit("TXAHA04415");
  1041. // }
  1042. // }
  1043. }
  1044. /********************************************************************************************************************************************************************/
  1045. /**===================================================================================
  1046. @desc : 종합판정입력
  1047. @param : 판정내역 및 질환코드내역
  1048. =====================================================================================*/
  1049. function fSaveJudgInqr(){
  1050. //판정내역
  1051. var rsrvdd = model.getValue("/root/init/send/srchrsrvdd");
  1052. if( rsrvdd == "") {
  1053. messageBox("판정대상내역을 ", "C002");
  1054. model.setFocus("cmb_srchrsrvdd");
  1055. return ;
  1056. }
  1057. if( messageBox("판정문진내역을 ", "Q002") !=6) return ;
  1058. copyNodesetType("/root/send/savedata","/root/init/send/info", "replace");
  1059. model.makeValue("/root/send/savedata/judginqr" , grd_judginqrlst.getUpdateData());
  1060. if(submit("TXAHA04411")) {
  1061. fGetJudglst("I");
  1062. }
  1063. }
  1064. /*=====================================================================================
  1065. @desc : 환자번호로 건진자 정보 가져오기...
  1066. =====================================================================================*/
  1067. function fGetPatinfoWithPid(sPid ) {
  1068. if( sPid == "" ) return ;
  1069. if(cmb_srchhealexamdetlflag2.value == "") {
  1070. cmb_srchhealexamdetlflag2.value = m_vHealexamdetlflag;
  1071. }
  1072. if( ahafGetPatInfo(2, sPid, "" , "/root/init/send/item2" ) == true ) {
  1073. model.setValue(ipt_srchpid2.attribute("ref") ,sPid);
  1074. model.setValue(ipt_srchpnm2.attribute("ref") ,model.getValue("/root/temp/patinfo/item/hngnm"));
  1075. model.setValue(opt_sex.attribute("ref") ,model.getValue("/root/temp/patinfo/item/sex"));
  1076. model.setValue(opt_age.attribute("ref") ,model.getValue("/root/temp/patinfo/item/age"));
  1077. //해당환자의 건진history조회
  1078. ahafGetHistList2(sPid, cmb_srchhealexamdetlflag2.value , "E");
  1079. }
  1080. }
  1081. /*=====================================================================================
  1082. @desc : 로그인 된 사람이 판정의 경우 등록
  1083. =====================================================================================*/
  1084. function fSetJudgDr() {
  1085. var licnsno = getUserInfo("licnsno");
  1086. var selChk = false;
  1087. for(var i=0; i < cmb_srchjudgdrid.length; i++) {
  1088. // 판정의 의사번호가 있을 경우 선택
  1089. if(cmb_srchjudgdrid.item(i).value == licnsno) {
  1090. cmb_srchjudgdrid.select(i);
  1091. model.makeValue("/root/hidden/judgdr" , licnsno);
  1092. selChk = true;
  1093. }
  1094. }
  1095. //선택된 것이 없으면 default
  1096. if(selChk == false) {
  1097. cmb_srchjudgdrid.select(0);
  1098. }
  1099. }
  1100. /**==================================================================================================================
  1101. @author : 손범성
  1102. @version :2007-12-17
  1103. @desc : 결과 판정을 체크한다.
  1104. @param :
  1105. ====================================================================================================================*/
  1106. function fRsltJudgChk() {
  1107. for(var i=1; i <= grd_rsltlst.rows; i++ ) {
  1108. var judgrsltcnts1 = grd_rsltlst.valueMatrix( i , grd_rsltlst.colRef("judgrsltcnts1") );
  1109. var judgrsltcnts2 = grd_rsltlst.valueMatrix( i , grd_rsltlst.colRef("judgrsltcnts2") );
  1110. var judgrsltcnts3 = grd_rsltlst.valueMatrix( i , grd_rsltlst.colRef("judgrsltcnts3") );
  1111. // 첫번째 건진 판정
  1112. if(judgrsltcnts1 != "") {
  1113. if(judgrsltcnts1 == "H") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts1") , i , grd_rsltlst.colRef("judgrsltcnts1")) = "#ff7a85";
  1114. if(judgrsltcnts1 == "L") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts1") , i , grd_rsltlst.colRef("judgrsltcnts1")) = "#99ccff";
  1115. grd_rsltlst.cellStyle("background-position" , i , grd_rsltlst.colRef("judgrsltcnts1") , i , grd_rsltlst.colRef("judgrsltcnts1")) = "center";
  1116. }
  1117. // 두번째 건진 판정
  1118. if(judgrsltcnts2 != "") {
  1119. if(judgrsltcnts2 == "H") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts2") , i , grd_rsltlst.colRef("judgrsltcnts2")) = "#ff7a85";
  1120. if(judgrsltcnts2 == "L") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts2") , i , grd_rsltlst.colRef("judgrsltcnts2")) = "#99ccff";
  1121. grd_rsltlst.cellStyle("background-position" , i , grd_rsltlst.colRef("judgrsltcnts2") , i , grd_rsltlst.colRef("judgrsltcnts2")) = "center";
  1122. }
  1123. // 세번째 건진 판정
  1124. if(judgrsltcnts3 != "") {
  1125. if(judgrsltcnts3 == "H") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts3") , i , grd_rsltlst.colRef("judgrsltcnts3")) = "#ff7a85";
  1126. if(judgrsltcnts3 == "L") grd_rsltlst.cellStyle("background-color" , i , grd_rsltlst.colRef("judgrsltcnts3") , i , grd_rsltlst.colRef("judgrsltcnts3")) = "#99ccff";
  1127. grd_rsltlst.cellStyle("background-position" , i , grd_rsltlst.colRef("judgrsltcnts3") , i , grd_rsltlst.colRef("judgrsltcnts3")) = "center";
  1128. }
  1129. }
  1130. for ( var i = 1; i <= grd_rslttextlst.rows; i++ ) {
  1131. grd_rslttextlst.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
  1132. grd_rslttextlst.rowstyle( i , "data" , "color" ) = "#000000";
  1133. var olddd = grd_rslttextlst.valueMatrix(i, grd_rslttextlst.colRef("rsrvdd")).substring(0,4);
  1134. var nowdd = cmb_srchrsrvdd.value.substring(0,4);
  1135. if ( olddd == nowdd ) {
  1136. grd_rslttextlst.rowstyle( i , "data" , "background-color" ) = "#CCFFCC";
  1137. }
  1138. }
  1139. }
  1140. /**==================================================================================================================
  1141. @author : 손범성
  1142. @version :2008-07-04
  1143. @desc : 결과 판정을 체크한다.
  1144. @param :
  1145. ====================================================================================================================*/
  1146. function fSetColRsltText(vRow) {
  1147. if( vRow < 1 ) return ;
  1148. var nodeList = instance1.selectNodes(grd_rslttextlst.attribute("nodeset") );
  1149. if( nodeList == null ) return ;
  1150. if( nodeList.length < 1 ) return ;
  1151. model.makeNode(tar_rsltcnts1.attribute("ref"));
  1152. model.makeNode(tar_rsltcnts2.attribute("ref"));
  1153. model.makeNode(tar_rsltcnts3.attribute("ref"));
  1154. model.setValue(tar_rsltcnts1.attribute("ref"), nodeList.item( vRow - 1 ).rslt1.text );
  1155. model.setValue(tar_rsltcnts2.attribute("ref"), nodeList.item( vRow - 1 ).rslt2.text );
  1156. model.setValue(tar_rsltcnts3.attribute("ref"), nodeList.item( vRow - 1 ).rslt3.text );
  1157. model.refresh();
  1158. }
  1159. ]]>
  1160. </script>
  1161. </xhtml:head>
  1162. <xhtml:body guideline="1,1196;2,757;2,939;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1163. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  1164. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:75px; height:14px; ">진찰/판정</caption>
  1165. </group>
  1166. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  1167. <switch id="switch1" style="left:3px; top:25px; width:1190px; height:713px; border-color:#c7a3cf; border-style:solid; ">
  1168. <case id="case_pat">
  1169. <line id="line6" class="line_1" style="x1:5px; y1:105px; x2:1182px; y2:105px; "/>
  1170. <group id="group2" style="left:5px; top:9px; width:1179px; height:66px; vertical-align:top; ">
  1171. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1178px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  1172. <caption id="caption13" class="search_name" style="left:230px; top:10px; width:86px; height:17px; ">건진일자 :</caption>
  1173. <caption id="caption14" class="search_name" style="left:11px; top:10px; width:89px; height:17px; ">건진종류 :</caption>
  1174. <button id="btn_search" class="btn1_letter2" style="left:1113px; top:22px; width:56px; height:22px; ">
  1175. <caption>조회</caption>
  1176. <script type="javascript" ev:event="DOMActivate">
  1177. <![CDATA[
  1178. fGetJudgPatList();
  1179. ]]>
  1180. </script>
  1181. </button>
  1182. <line id="line16" style="x1:1101px; y1:10px; x2:1101px; y2:59px; border-color:#ffe4bb; border-left-style:solid; "/>
  1183. <select1 id="cmb_srchhealexamdetlflag" ref="/root/init/send/srchhealexamdetlflag" class="combo_s_essential" disabled="true" appearance="minimal" style="left:101px; top:10px; width:105px; height:19px; ">
  1184. <choices>
  1185. <itemset nodeset="/root/init/baseinfo/hedetlflaglst/item">
  1186. <label ref="cdnm"/>
  1187. <value ref="cdid"/>
  1188. </itemset>
  1189. </choices>
  1190. </select1>
  1191. <input id="ipt_srchfromdd" ref="/root/init/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:319px; top:10px; width:100px; height:19px; "/>
  1192. <input id="ipt_srchtodd" ref="/root/init/send/srchtodd" class="input_s_essential" inputtype="date" style="left:439px; top:10px; width:100px; height:19px; ">
  1193. <script type="javascript" ev:event="xforms-value-changed">
  1194. <![CDATA[
  1195. fGetJudgPatList();
  1196. ]]>
  1197. </script>
  1198. </input>
  1199. <select1 id="cmb_srchjudgdrid" ref="/root/init/send/srchjudgdrid" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:91px; top:36px; width:105px; height:19px; ">
  1200. <choices>
  1201. <itemset nodeset="/root/init/baseinfo/drlst/itemdr">
  1202. <label ref="drnm"/>
  1203. <value ref="drid"/>
  1204. </itemset>
  1205. </choices>
  1206. <script type="javascript" ev:event="xforms-value-changed">
  1207. <![CDATA[
  1208. fGetJudgPatList();
  1209. ]]>
  1210. </script>
  1211. </select1>
  1212. <caption id="caption1" class="search_name" visibility="hidden" style="left:11px; top:35px; width:89px; height:17px; ">판정의 :</caption>
  1213. <input id="ipt_pnm" ref="/root/init/send/srchpnm" class="input_default" style="left:781px; top:10px; width:105px; height:19px; "/>
  1214. <input id="ipt_pid" ref="/root/init/send/srchpid" class="input_default" style="left:650px; top:10px; width:105px; height:19px; ">
  1215. <script type="javascript" ev:event="onkeyup">
  1216. <![CDATA[
  1217. if( event.keyCode != 13) return ;
  1218. if( !ahafGetPatInfo(2, ipt_pid.currentText , "" , "/root/init/send/item1" ) ) return ;
  1219. model.setValue("/root/init/send/item1/pid", model.getValue("/root/temp/patinfo/item/pid"));
  1220. model.setValue("/root/init/send/item1/hngnm", model.getValue("/root/temp/patinfo/item/hngnm") );
  1221. model.refresh();
  1222. if( model.getValue("/root/init/send/item1/pid") == "" ) return ;
  1223. fGetJudgPatList();
  1224. ]]>
  1225. </script>
  1226. </input>
  1227. <caption id="caption3" class="search_name" style="left:560px; top:10px; width:89px; height:17px; ">등록번호 :</caption>
  1228. <caption id="caption18" class="search_no_b" style="left:424px; top:11px; width:12px; height:17px; ">~</caption>
  1229. <button id="btn_srchpat" class="icon_search" style="left:759px; top:10px; width:16px; height:16px; ">
  1230. <caption/>
  1231. <script type="javascript" ev:event="DOMActivate">
  1232. <![CDATA[
  1233. fSearchPatInfo("SMAHA00100", "pnm", ipt_pnm.currentText , "N", "/root/send" ,ipt_pid.attribute("ref"), ipt_pnm.attribute("ref") );
  1234. if( model.getValue(ipt_pid.attribute("ref")) != "" ) fGetJudgPatList();
  1235. ]]>
  1236. </script>
  1237. </button>
  1238. <select1 id="cmb_statflag" ref="/root/init/send/srchstatflag" class="combo_s_essential" appearance="minimal" style="left:990px; top:10px; width:105px; height:19px; ">
  1239. <choices>
  1240. <item>
  1241. <label>판정대기</label>
  1242. <value>1</value>
  1243. </item>
  1244. <item>
  1245. <label>판정완료</label>
  1246. <value>2</value>
  1247. </item>
  1248. </choices>
  1249. <script type="javascript" ev:event="xforms-value-changed">
  1250. <![CDATA[
  1251. fGetJudgPatList();
  1252. ]]>
  1253. </script>
  1254. </select1>
  1255. </group>
  1256. <caption id="caption5" class="tit_2" style="left:5px; top:85px; width:151px; height:13px; ">대기자리스트</caption>
  1257. <caption id="caption31" class="search_name" style="left:905px; top:20px; width:97px; height:17px; ">상태구분 :</caption>
  1258. <datagrid id="grd_judgpatlst" nodeset="/root/main/judgpatlst/item" caption="상태^신검일자^한글이름^영문이름^등록번호^비자연번^성별^집 전화번호^휴대전화번호^환자주소^나이^패키지명^패키지코드^비고^rsrvdd^rsrvno^cretno^brthareacnts^orddd^rsrvtm^rrgstno1^rrgstno2^healexamflag^healexamdetlflag^judgdd^judgdrid^judgdd2^judgdrid2^judgstat" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 50, 100, 100, 100, 50, 200, 100, 250, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:110px; width:1177px; height:596px; ">
  1259. <col disabled="true" ref="statflag" type="combo">
  1260. <choices>
  1261. <itemset nodeset="/root/init/baseinfo/statlst/A0107">
  1262. <label ref="cdnm"/>
  1263. <value ref="cdid"/>
  1264. </itemset>
  1265. </choices>
  1266. </col>
  1267. <col ref="hopedd" format="yyyy-mm-dd"/>
  1268. <col ref="hngnm"/>
  1269. <col ref="engnm" visibility="hidden"/>
  1270. <col ref="pid"/>
  1271. <col ref="visano" visibility="hidden"/>
  1272. <col ref="sex"/>
  1273. <col ref="hometel"/>
  1274. <col ref="mpphontel"/>
  1275. <col ref="pataddr"/>
  1276. <col ref="age"/>
  1277. <col ref="pkgnm"/>
  1278. <col ref="pkgcd" visibility="hidden"/>
  1279. <col ref="acptremcnts" type="input"/>
  1280. <col ref="rsrvdd" visibility="hidden"/>
  1281. <col ref="rsrvno" visibility="hidden"/>
  1282. <col ref="cretno" visibility="hidden"/>
  1283. <col ref="brthareacnts" visibility="hidden"/>
  1284. <col ref="orddd" visibility="hidden"/>
  1285. <col ref="rsrvtm" visibility="hidden"/>
  1286. <col ref="rgstno1" visibility="hidden"/>
  1287. <col ref="rgstno2" visibility="hidden" style="left:1870px; top:23px; width:100px; height:23px; "/>
  1288. <col ref="healexamflag" visibility="hidden"/>
  1289. <col ref="healexamdetlflag" visibility="hidden"/>
  1290. <col ref="judgdd" visibility="hidden"/>
  1291. <col ref="judgdrid" visibility="hidden"/>
  1292. <col ref="judgdd2" visibility="hidden"/>
  1293. <col ref="judgdrid2" visibility="hidden"/>
  1294. <col ref="judgstat" visibility="hidden"/>
  1295. <script type="javascript" ev:event="ondblclick">
  1296. <![CDATA[
  1297. fGetJudgInfo();
  1298. ]]>
  1299. </script>
  1300. </datagrid>
  1301. </case>
  1302. <case id="case_judg" selected="true">
  1303. <datagrid id="grd_rsltlst" nodeset="/root/main/judgdetl/rsltlst/item" caption="처방명칭^2007^판정^2006^판정^2005^판정^단위^기준^testcd^execprcpuniqno^prcpdd" colsep="^" colwidth="99, 62, 30, 59, 30, 56, 30, 53, 87, 50 , 50 , 50" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:5px; top:142px; width:540px; height:373px; ">
  1304. <col ref="testnm"/>
  1305. <col ref="rslt1"/>
  1306. <col ref="judgrsltcnts1" style="text-align:center; "/>
  1307. <col ref="rslt2"/>
  1308. <col ref="judgrsltcnts2" style="text-align:center; "/>
  1309. <col ref="rslt3"/>
  1310. <col ref="judgrsltcnts3" style="text-align:center; "/>
  1311. <col ref="rsltunit"/>
  1312. <col ref="stndval"/>
  1313. <col ref="testcd" visibility="hidden"/>
  1314. <col ref="execprcpuniqno" visibility="hidden"/>
  1315. <col ref="prcpdd" visibility="hidden"/>
  1316. <script type="javascript" ev:event="onclick">
  1317. <![CDATA[
  1318. model.makeValue("/root/temp/seqno", model.getValue("/root/main/judgdetl/rsltlst/item["+grd_rsltlst.row+"]/execprcpuniqno"));
  1319. model.makeValue("/root/temp/prcpdd",model.getValue("/root/main/judgdetl/rsltlst/item["+grd_rsltlst.row+"]/prcpdd"));
  1320. ]]>
  1321. </script>
  1322. </datagrid>
  1323. <datagrid id="grd_rslttextlst" nodeset="/root/main/judgdetl/rsltlst/itemtext" caption="처방명칭^testcd^caption1^caption2^execprcpuniqno^prcpdd^rsrvdd" colsep="^" colwidth="197, 100, 100, 100, 50, 50, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:522px; width:233px; height:183px; ">
  1324. <col ref="testnm"/>
  1325. <col ref="testcd" visibility="hidden"/>
  1326. <col ref="judgrslt" visibility="hidden"/>
  1327. <col ref="rslt1" visibility="hidden"/>
  1328. <col ref="execprcpuniqno" visibility="hidden"/>
  1329. <col ref="prcpdd" visibility="hidden"/>
  1330. <col ref="rsrvdd" visibility="hidden"/>
  1331. <script type="javascript" ev:event="onclick">
  1332. <![CDATA[
  1333. fSetColRsltText(grd_rslttextlst.row);
  1334. model.makeValue("/root/temp/seqno", model.getValue("/root/main/judgdetl/rsltlst/itemtext["+grd_rslttextlst.row+"]/execprcpuniqno"));
  1335. model.makeValue("/root/temp/prcpdd",model.getValue("/root/main/judgdetl/rsltlst/itemtext["+grd_rslttextlst.row+"]/prcpdd"));
  1336. ]]>
  1337. </script>
  1338. <script type="javascript" ev:event="onkeydown">
  1339. <![CDATA[
  1340. var idx = grd_rslttextlst.row;
  1341. if(event.keyCode == 38 && idx > 0) {
  1342. fSetColRsltText( idx - 1 );
  1343. }else if(event.keyCode == 40 && idx < grd_rslttextlst.rows -1) {
  1344. fSetColRsltText( idx + 1 );
  1345. }
  1346. ]]>
  1347. </script>
  1348. </datagrid>
  1349. <group id="group5" style="left:240px; top:522px; width:306px; height:183px; vertical-align:top; ">
  1350. <caption id="cap_year1" ref="/root/main/judgdetl/rsltlst/itemorddd/hopedd1" class="cell_1" format="yyyy" roundmode="round" style="left:-2px; top:1px; width:35px; height:60px; vertical-align:middle; cursor:hand; ">
  1351. <![CDATA[2006]]>
  1352. <script type="javascript" ev:event="ondblclick">
  1353. <![CDATA[
  1354. fSetLargView(tar_rsltcnts1.value, cap_year1.value);
  1355. ]]>
  1356. </script>
  1357. </caption>
  1358. <caption id="cap_year2" ref="/root/main/judgdetl/rsltlst/itemorddd/hopedd2" class="cell_1" format="yyyy" style="left:-2px; top:62px; width:35px; height:60px; vertical-align:middle; cursor:hand; ">
  1359. <![CDATA[2005]]>
  1360. <script type="javascript" ev:event="ondblclick">
  1361. <![CDATA[
  1362. fSetLargView(tar_rsltcnts2.value, cap_year2.value);
  1363. ]]>
  1364. </script>
  1365. </caption>
  1366. <caption id="cap_year3" ref="/root/main/judgdetl/rsltlst/itemorddd/hopedd3" class="cell_1" format="yyyy" style="left:-2px; top:123px; width:35px; height:60px; vertical-align:middle; cursor:hand; ">
  1367. <![CDATA[2004]]>
  1368. <script type="javascript" ev:event="ondblclick">
  1369. <![CDATA[
  1370. fSetLargView(tar_rsltcnts3.value, cap_year3.value);
  1371. ]]>
  1372. </script>
  1373. </caption>
  1374. <textarea id="tar_rsltcnts1" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt1" scroll="vertical" editable="false" style="left:36px; top:2px; width:268px; height:56px; "/>
  1375. <textarea id="tar_rsltcnts3" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt3" scroll="vertical" editable="false" style="left:36px; top:125px; width:268px; height:56px; "/>
  1376. <textarea id="tar_rsltcnts2" ref="/root/main/judgdetl/rsltlst/rslttextinfo/rslt2" scroll="vertical" editable="false" style="left:36px; top:64px; width:268px; height:56px; "/>
  1377. <line id="line4" class="line_2" style="x1:-2px; y1:-1px; x2:292px; y2:-1px; "/>
  1378. <line id="line5" class="line_2" style="x1:30px; y1:121px; x2:304px; y2:121px; "/>
  1379. <line id="line7" class="line_2" style="x1:30px; y1:60px; x2:304px; y2:60px; "/>
  1380. </group>
  1381. <line id="line9" class="line_1" style="x1:5px; y1:517px; x2:546px; y2:517px; "/>
  1382. <line id="line11" class="line_3" style="x1:5px; y1:706px; x2:536px; y2:706px; "/>
  1383. <caption id="caption4" class="tit_2" style="left:5px; top:95px; width:100px; height:14px; ">진찰/판정</caption>
  1384. <caption id="caption23" class="cell_1" style="left:5px; top:117px; width:60px; height:23px; vertical-align:middle; ">패키지명</caption>
  1385. <output id="opt_pkgnm" ref="/root/init/send/srchpkgnm" class="output_fix" appearance="output" style="left:67px; top:118px; width:478px; height:19px; "/>
  1386. <line id="line8" class="line_3" style="x1:5px; y1:139px; x2:546px; y2:139px; "/>
  1387. <group id="group1" style="left:5px; top:5px; width:541px; height:85px; vertical-align:top; ">
  1388. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:540px; height:84px; background-color:#fffbf2; border-color:#ffd799; "/>
  1389. <caption id="caption22" class="search_name" style="left:11px; top:8px; width:89px; height:17px; ">건진종류 :</caption>
  1390. <button id="btn_searchhist" class="btn1_letter2" style="left:460px; top:30px; width:56px; height:22px; ">
  1391. <caption>조회</caption>
  1392. <script type="javascript" ev:event="DOMActivate">
  1393. <![CDATA[
  1394. var vPid = model.getValue(ipt_srchpid2.attribute("ref")) ;
  1395. if( vPid != "" ) {
  1396. //해당환자의 건진history조회
  1397. ahafGetHistList2(vPid, cmb_srchhealexamdetlflag.value , "E");
  1398. cmb_srchrsrvdd.select(0);
  1399. }
  1400. ]]>
  1401. </script>
  1402. </button>
  1403. <line id="line1" style="x1:443px; y1:10px; x2:443px; y2:72px; border-color:#ffe4bb; border-left-style:solid; "/>
  1404. <select1 id="cmb_srchhealexamdetlflag2" ref="/root/init/send/srchhealexamdetlflag2" class="combo_s_essential" disabled="true" appearance="minimal" style="left:101px; top:8px; width:105px; height:19px; ">
  1405. <choices>
  1406. <itemset nodeset="/root/init/baseinfo/hedetlflaglst/item">
  1407. <label ref="cdnm"/>
  1408. <value ref="cdid"/>
  1409. </itemset>
  1410. </choices>
  1411. </select1>
  1412. <input id="ipt_srchpnm2" ref="/root/init/send/srchpnm2" class="input_default" style="left:232px; top:32px; width:115px; height:19px; ">
  1413. <script type="javascript" ev:event="onkeyup">
  1414. <![CDATA[
  1415. inputEnterKey("btn_search2","DOMActivate" );
  1416. ]]>
  1417. </script>
  1418. </input>
  1419. <input id="ipt_srchpid2" ref="/root/init/send/srchpid2" class="input_default" style="left:101px; top:32px; width:105px; height:19px; ">
  1420. <script type="javascript" ev:event="onkeyup">
  1421. <![CDATA[
  1422. if( event.keyCode == 13 ){
  1423. //건진자 정보 가져오기...
  1424. fGetPatinfoWithPid(ipt_srchpid2.currentText);
  1425. }
  1426. ]]>
  1427. </script>
  1428. </input>
  1429. <caption id="caption26" class="search_name" style="left:11px; top:32px; width:89px; height:17px; ">등록번호 :</caption>
  1430. <caption id="caption2" class="search_name" style="left:11px; top:55px; width:86px; height:17px; ">건진정보 :</caption>
  1431. <select1 id="cmb_srchrsrvdd" ref="/root/init/send/srchrsrvdd" class="combo_s_essential" appearance="minimal" style="left:101px; top:55px; width:325px; height:19px; ">
  1432. <choices>
  1433. <itemset nodeset="/root/temp/histlst/item">
  1434. <label ref="hopedd"/>
  1435. <value ref="rsrvdd"/>
  1436. </itemset>
  1437. </choices>
  1438. <script type="javascript" ev:event="xforms-select">
  1439. <![CDATA[
  1440. var idx = cmb_srchrsrvdd.mouseRow;
  1441. if( idx < 0) return ;
  1442. var sNd = cmb_srchrsrvdd.choices.itemset.attribute("nodeset") ;
  1443. var nodelist = instance1.selectNodes(sNd);
  1444. if( nodelist == null ) return ;
  1445. if(idx >= nodelist.length) idx = 0;
  1446. var sRsrvdd = nodelist.item(idx).rsrvdd.text;
  1447. var sRsrvno = nodelist.item(idx).rsrvno.text;
  1448. var sPkgnm = nodelist.item(idx).pkgnm.text;
  1449. var sPid = nodelist.item(idx).pid.text;
  1450. var sOrdDD = nodelist.item(idx).orddd.text;
  1451. var sCretno = nodelist.item(idx).cretno.text;
  1452. copyNodesetType("/root/init/send/info" , sNd + "[" + (idx + 1) + "]" , "replace");
  1453. fGetJudgDetlInfo( sRsrvdd, sRsrvno , sPkgnm, sPid, sOrdDD , sCretno );
  1454. ]]>
  1455. </script>
  1456. </select1>
  1457. <output id="opt_sex" ref="/root/init/send/srchsex" class="output_fix" style="left:350px; top:32px; width:36px; height:19px; "/>
  1458. <output id="opt_age" ref="/root/init/send/srchage" class="output_fix" style="left:389px; top:32px; width:36px; height:19px; "/>
  1459. <button id="btn_search2" class="icon_search" style="left:210px; top:32px; width:16px; height:16px; ">
  1460. <caption/>
  1461. <script type="javascript" ev:event="DOMActivate">
  1462. <![CDATA[
  1463. fSearchPatInfo("SMAHA00100", "pnm", ipt_srchpnm2.currentText , "Y", "/root/temp/patinfo/item");
  1464. model.setValue("/root/init/send/srchpid2" , model.getValue("/root/temp/patinfo/item/pid"));
  1465. model.setValue("/root/init/send/srchpnm2" , model.getValue("/root/temp/patinfo/item/hngnm"));
  1466. model.setValue("/root/init/send/srchsex" , model.getValue("/root/temp/patinfo/item/sex"));
  1467. model.setValue("/root/init/send/srchage" , model.getValue("/root/temp/patinfo/item/age"));
  1468. var vPid = model.getValue(ipt_srchpid2.attribute("ref")) ;
  1469. if( vPid != "" ) {
  1470. //해당환자의 건진history조회
  1471. ahafGetHistList2(vPid, cmb_srchhealexamdetlflag.value , "E");
  1472. }
  1473. ]]>
  1474. </script>
  1475. </button>
  1476. </group>
  1477. <line id="line2" class="line_1" style="x1:5px; y1:112px; x2:546px; y2:112px; "/>
  1478. <input id="ipt_meddd" ref="/root/main/judgdetl/medinfo/item/meddd" class="input_essential" inputtype="date" style="left:614px; top:8px; width:95px; height:19px; "/>
  1479. <line id="line23" class="line_3" style="x1:552px; y1:5px; x2:1184px; y2:5px; "/>
  1480. <select1 id="cmb_meddr" ref="/root/main/judgdetl/medinfo/item/meddrid" class="combo_essential" appearance="minimal" style="left:760px; top:8px; width:95px; height:19px; ">
  1481. <choices>
  1482. <itemset nodeset="/root/init/baseinfo/meddrlst/itemdr">
  1483. <label ref="drnm"/>
  1484. <value ref="drid"/>
  1485. </itemset>
  1486. </choices>
  1487. <script type="javascript" ev:event="xforms-value-changed">
  1488. <![CDATA[
  1489. model.property("judgdr") = cmb_judgdr.value;
  1490. ]]>
  1491. </script>
  1492. </select1>
  1493. <caption id="caption6" class="cell_1" style="left:712px; top:6px; width:45px; height:23px; vertical-align:middle; ">진찰의</caption>
  1494. <caption id="caption8" class="cell_1" style="left:552px; top:6px; width:59px; height:23px; vertical-align:middle; ">진찰일자</caption>
  1495. <switch id="switch2" style="left:552px; top:60px; width:630px; height:645px; ">
  1496. <case id="case_med" style="left:0px; top:0px; width:630px; height:4523px; ">
  1497. <datagrid id="grd_medinqrlst" nodeset="/root/main/judgdetl/judginfo/medinqr" caption="진찰명^결과값^비고^문진분류^문진코드^결과코드^문진유형^STAT^LRGRSLTYN" colsep="^" colwidth="200, 200, 190, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:0px; width:627px; height:640px; ">
  1498. <col ref="judginqrnm"/>
  1499. <col ref="judgrsltcnts" type="input"/>
  1500. <col ref="judgremcnts" type="input"/>
  1501. <col ref="judginqrflag" visibility="hidden"/>
  1502. <col ref="judginqrcd" visibility="hidden"/>
  1503. <col ref="judgrsltcd" visibility="hidden"/>
  1504. <col ref="answcdflag" visibility="hidden"/>
  1505. <col ref="stat" visibility="hidden"/>
  1506. <col ref="lrgrsltyn" visibility="hidden"/>
  1507. <script type="javascript" ev:event="xforms-value-changed">
  1508. <![CDATA[
  1509. if(isDataCell()) {
  1510. if(grd_medinqrlst.col == grd_medinqrlst.colRef("judgrsltcnts")) {
  1511. fSetChoiAnsw(grd_medinqrlst);
  1512. grd_medinqrlst.row = grd_medinqrlst.row + 1;
  1513. grd_medinqrlst.dispatch("onrowchanged");
  1514. }
  1515. }
  1516. ]]>
  1517. </script>
  1518. <script type="javascript" ev:event="onstartedit">
  1519. <![CDATA[
  1520. if(grd_medinqrlst.col == grd_medinqrlst.colRef("judgrsltcnts")) { ;
  1521. fSetAnswVisible(grd_medinqrlst);
  1522. }
  1523. ]]>
  1524. </script>
  1525. <script type="javascript" ev:event="onrowchanged">
  1526. <![CDATA[
  1527. if(grd_medinqrlst.col == grd_medinqrlst.colRef("judgrsltcnts")) { ;
  1528. fSetAnswVisible(grd_medinqrlst);
  1529. }
  1530. ]]>
  1531. </script>
  1532. <script type="javascript" ev:event="onclick">
  1533. <![CDATA[
  1534. if(isDataCell()) {
  1535. if(grd_medinqrlst.col == grd_medinqrlst.colRef("judgrsltcnts")) {
  1536. grd_medinqrlst.editCell();
  1537. }
  1538. }
  1539. ]]>
  1540. </script>
  1541. <script type="javascript" ev:event="onkeyup">
  1542. <![CDATA[
  1543. if(isDataCell()) {
  1544. if(grd_medinqrlst.col == grd_medinqrlst.colRef("judgremcnts")) {
  1545. if(event.keyCode == 13) {
  1546. grd_medinqrlst.col = grd_medinqrlst.colRef("judgrsltcnts");
  1547. grd_medinqrlst.row = grd_medinqrlst.row +1;
  1548. grd_medinqrlst.editCell();
  1549. }
  1550. }
  1551. }
  1552. ]]>
  1553. </script>
  1554. </datagrid>
  1555. </case>
  1556. <case id="case_prnt" selected="true">
  1557. <datagrid id="grd_judginqrlst" nodeset="/root/main/judgdetl/judginfo/judginqr" caption="판정명^판정값^비고^문진분류^문진코드^결과코드^문진유형^STAT^LRGRSLTYN" colsep="^" colwidth="200, 200, 190, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:0px; width:627px; height:640px; ">
  1558. <col ref="judginqrnm"/>
  1559. <col ref="judgrsltcnts" type="input"/>
  1560. <col ref="judgremcnts" type="input"/>
  1561. <col ref="judginqrflag" visibility="hidden"/>
  1562. <col ref="judginqrcd" visibility="hidden"/>
  1563. <col ref="judgrsltcd" visibility="hidden"/>
  1564. <col ref="answcdflag" visibility="hidden"/>
  1565. <col ref="stat" visibility="hidden"/>
  1566. <col ref="lrgrsltyn" visibility="hidden"/>
  1567. <script type="javascript" ev:event="xforms-value-changed">
  1568. <![CDATA[
  1569. if(isDataCell()) {
  1570. if(grd_judginqrlst.col == grd_judginqrlst.colRef("judgrsltcnts")) {
  1571. fSetChoiAnsw(grd_judginqrlst);
  1572. grd_judginqrlst.row = grd_judginqrlst.row + 1;
  1573. grd_judginqrlst.dispatch("onrowchanged");
  1574. }
  1575. }
  1576. ]]>
  1577. </script>
  1578. <script type="javascript" ev:event="onstartedit">
  1579. <![CDATA[
  1580. if(grd_judginqrlst.col == grd_judginqrlst.colRef("judgrsltcnts")) { ;
  1581. fSetAnswVisible(grd_judginqrlst);
  1582. }
  1583. ]]>
  1584. </script>
  1585. <script type="javascript" ev:event="onrowchanged">
  1586. <![CDATA[
  1587. if(grd_judginqrlst.col == grd_judginqrlst.colRef("judgrsltcnts")) { ;
  1588. fSetAnswVisible(grd_judginqrlst);
  1589. }
  1590. ]]>
  1591. </script>
  1592. <script type="javascript" ev:event="onclick">
  1593. <![CDATA[
  1594. if(isDataCell()) {
  1595. if(grd_judginqrlst.col == grd_judginqrlst.colRef("judgrsltcnts")) {
  1596. grd_judginqrlst.editCell();
  1597. }
  1598. }
  1599. ]]>
  1600. </script>
  1601. <script type="javascript" ev:event="onkeyup">
  1602. <![CDATA[
  1603. if(isDataCell()) {
  1604. if(grd_judginqrlst.col == grd_judginqrlst.colRef("judgremcnts")) {
  1605. if(event.keyCode == 13) {
  1606. grd_judginqrlst.col = grd_judginqrlst.colRef("judgrsltcnts");
  1607. grd_judginqrlst.row = grd_judginqrlst.row +1;
  1608. grd_judginqrlst.editCell();
  1609. }
  1610. }
  1611. }
  1612. ]]>
  1613. </script>
  1614. </datagrid>
  1615. </case>
  1616. <case id="case_inqr">
  1617. <datagrid id="grd_apntinqrlst" nodeset="/root/main/judgdetl/judginfo/apntinqr" caption="문진명^문진값^비고^문진분류^문진코드^결과코드^문진유형^STAT^LRGRSLTYN" colsep="^" colwidth="200, 200, 190, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:0px; width:627px; height:640px; ">
  1618. <col ref="judginqrnm"/>
  1619. <col ref="judgrsltcnts" type="input"/>
  1620. <col ref="judgremcnts" type="input"/>
  1621. <col ref="judginqrflag" visibility="hidden"/>
  1622. <col ref="judginqrcd" visibility="hidden"/>
  1623. <col ref="judgrsltcd" visibility="hidden"/>
  1624. <col ref="answcdflag" visibility="hidden"/>
  1625. <col ref="stat" visibility="hidden"/>
  1626. <col ref="lrgrsltyn" visibility="hidden"/>
  1627. <script type="javascript" ev:event="xforms-value-changed">
  1628. <![CDATA[
  1629. if(isDataCell()) {
  1630. if(grd_apntinqrlst.col == grd_apntinqrlst.colRef("judgrsltcnts")) {
  1631. fSetChoiAnsw(grd_apntinqrlst);
  1632. grd_apntinqrlst.row = grd_apntinqrlst.row + 1;
  1633. grd_apntinqrlst.dispatch("onrowchanged");
  1634. }
  1635. }
  1636. ]]>
  1637. </script>
  1638. <script type="javascript" ev:event="onstartedit">
  1639. <![CDATA[
  1640. if(grd_apntinqrlst.col == grd_apntinqrlst.colRef("judgrsltcnts")) { ;
  1641. fSetAnswVisible(grd_apntinqrlst);
  1642. }
  1643. ]]>
  1644. </script>
  1645. <script type="javascript" ev:event="onrowchanged">
  1646. <![CDATA[
  1647. if(grd_apntinqrlst.col == grd_apntinqrlst.colRef("judgrsltcnts")) { ;
  1648. fSetAnswVisible(grd_apntinqrlst);
  1649. }
  1650. ]]>
  1651. </script>
  1652. <script type="javascript" ev:event="onclick">
  1653. <![CDATA[
  1654. if(isDataCell()) {
  1655. if(grd_apntinqrlst.col == grd_apntinqrlst.colRef("judgrsltcnts")) {
  1656. grd_apntinqrlst.editCell();
  1657. }
  1658. }
  1659. ]]>
  1660. </script>
  1661. <script type="javascript" ev:event="onkeyup">
  1662. <![CDATA[
  1663. if(isDataCell()) {
  1664. if(grd_apntinqrlst.col == grd_apntinqrlst.colRef("judgremcnts")) {
  1665. if(event.keyCode == 13) {
  1666. grd_apntinqrlst.col = grd_apntinqrlst.colRef("judgrsltcnts");
  1667. grd_apntinqrlst.row = grd_apntinqrlst.row +1;
  1668. grd_apntinqrlst.editCell();
  1669. }
  1670. }
  1671. }
  1672. ]]>
  1673. </script>
  1674. </datagrid>
  1675. </case>
  1676. </switch>
  1677. <line id="line3" class="line_3" style="x1:552px; y1:29px; x2:1184px; y2:29px; "/>
  1678. <input id="ipt_judgdd" ref="/root/main/judgdetl/judginfo/judg/judgdd" class="input_essential" disabled="true" inputtype="date" style="left:939px; top:8px; width:95px; height:19px; "/>
  1679. <select1 id="cmb_judgdr" ref="/root/main/judgdetl/judginfo/judg/judgdrid" class="combo_essential" appearance="minimal" style="left:1085px; top:8px; width:95px; height:19px; ">
  1680. <choices>
  1681. <itemset nodeset="/root/init/baseinfo/judgdrlst/itemdr">
  1682. <label ref="drnm"/>
  1683. <value ref="drid"/>
  1684. </itemset>
  1685. </choices>
  1686. <script type="javascript" ev:event="xforms-value-changed">
  1687. <![CDATA[
  1688. model.property("judgdr") = cmb_judgdr.value;
  1689. ]]>
  1690. </script>
  1691. </select1>
  1692. <caption id="caption7" class="cell_1" style="left:1037px; top:6px; width:45px; height:23px; vertical-align:middle; ">판정의</caption>
  1693. <caption id="caption10" class="cell_1" style="left:877px; top:6px; width:59px; height:23px; vertical-align:middle; ">판정일자</caption>
  1694. <button id="btn_med" class="btn_sw" group="tab_2" selected="true" style="left:552px; top:39px; width:80px; height:22px; ">
  1695. <caption>진찰</caption>
  1696. <script type="javascript" ev:event="onclick">
  1697. <![CDATA[
  1698. model.setValue("/root/send/inqrflag","F");
  1699. model.toggle("case_med");
  1700. ]]>
  1701. </script>
  1702. </button>
  1703. <button id="btn_prnt" class="btn_sw" group="tab_2" selected="true" style="left:632px; top:39px; width:80px; height:22px; ">
  1704. <caption>판정</caption>
  1705. <script type="javascript" ev:event="onclick">
  1706. <![CDATA[
  1707. model.setValue("/root/send/inqrflag","G");
  1708. model.toggle("case_prnt");
  1709. ]]>
  1710. </script>
  1711. </button>
  1712. <group id="grp_answ" visibility="hidden" style="left:275px; top:185px; width:260px; height:195px; ">
  1713. <datagrid id="grd_answlst" nodeset="/root/hidden/answlst/item" visibility="visible" caption="코드^답안내용^검사코드^문진구분" colsep="^" colwidth="30, 198, 46, 46" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:5px; width:250px; height:185px; ">
  1714. <col ref="answcd"/>
  1715. <col ref="answcnts"/>
  1716. <col ref="judginqrcd" visibility="hidden"/>
  1717. <col ref="inqrflag" visibility="hidden"/>
  1718. </datagrid>
  1719. </group>
  1720. <button id="button4" class="btn_sw" group="tab_2" selected="true" style="left:712px; top:39px; width:80px; height:22px; ">
  1721. <caption>문진</caption>
  1722. <script type="javascript" ev:event="onclick">
  1723. <![CDATA[
  1724. model.setValue("/root/send/inqrflag","E");
  1725. model.toggle("case_inqr");
  1726. ]]>
  1727. </script>
  1728. </button>
  1729. </case>
  1730. </switch>
  1731. <button id="btn_patlst" class="btn_sw" group="tab_1" selected="true" style="left:3px; top:5px; width:105px; height:22px; ">
  1732. <caption>진찰/판정대기자</caption>
  1733. <toggle case="case_pat" ev:event="onclick"/>
  1734. </button>
  1735. <button id="btn_judg" class="btn_sw" group="tab_1" style="left:109px; top:5px; width:105px; height:22px; ">
  1736. <caption>진찰/판정</caption>
  1737. <toggle case="case_judg" ev:event="onclick"/>
  1738. </button>
  1739. </group>
  1740. <group id="grp_btn" style="left:0px; top:754px; width:1195px; height:27px; ">
  1741. <button id="btn_clear" class="btn4_letter3" style="left:1122px; top:5px; width:68px; height:22px; ">
  1742. <caption>초기화</caption>
  1743. <script type="javascript" ev:event="DOMActivate">
  1744. <![CDATA[
  1745. if(case_pat.selected == true) {
  1746. fInit(false );
  1747. }else {
  1748. fInit(true);
  1749. }
  1750. ]]>
  1751. </script>
  1752. </button>
  1753. <button id="btn_print" class="btn6_letter4" style="left:7px; top:5px; width:80px; height:22px; ">
  1754. <caption>서식출력</caption>
  1755. <script type="javascript" ev:event="DOMActivate">
  1756. <![CDATA[
  1757. if(case_judg.selected == true) {
  1758. fJudgInqrPrint();
  1759. }
  1760. ]]>
  1761. </script>
  1762. </button>
  1763. <button id="button1" class="btn3_letter4" style="left:88px; top:5px; width:116px; height:22px; ">
  1764. <caption>발송대기</caption>
  1765. <script type="javascript" ev:event="DOMActivate">
  1766. <![CDATA[
  1767. if(case_judg.selected == true) {
  1768. clearParameter("SMAHA04510_PARAM1");
  1769. clearParameter("SMAHA04510_PARAM2");
  1770. clearParameter("SMAHA04510_PARAM3");
  1771. clearParameter("SMAHA04510_PARAM4");
  1772. setParameter ("SMAHA04510_PARAM1", model.getValue("/root/init/send/info/healexamdetlflag") ); // 건진상세구분
  1773. setParameter ("SMAHA04510_PARAM2", model.getValue("/root/init/send/info/hopedd")); // 건진일자
  1774. setParameter ("SMAHA04510_PARAM3", model.getValue("/root/init/send/info/pid")); // 등록번호
  1775. setParameter ("SMAHA04510_PARAM4", model.getValue("/root/init/send/info/brthareacnts")); // 국가코드
  1776. modal("SMAHA04510");
  1777. }
  1778. ]]>
  1779. </script>
  1780. </button>
  1781. <button id="button2" class="btn3_letter6" style="left:170px; top:5px; width:80px; height:22px; ">
  1782. <caption>재/미검자관리</caption>
  1783. <script type="javascript" ev:event="DOMActivate">
  1784. <![CDATA[
  1785. modal("SMAHA04610");
  1786. ]]>
  1787. </script>
  1788. </button>
  1789. <button id="btn_save" class="btn4_letter2" style="left:1065px; top:5px; width:56px; height:22px; ">
  1790. <caption>저장</caption>
  1791. <script type="javascript" ev:event="DOMActivate">
  1792. <![CDATA[
  1793. var inqrflag = model.getValue("/root/send/inqrflag");
  1794. var sRsrvdd = model.getValue("/root/init/send/info/rsrvdd");
  1795. var sRsrvno = model.getValue("/root/init/send/info/rsrvno");
  1796. var sPkgnm = model.getValue("/root/init/send/info/pkgnm");
  1797. var sPid = model.getValue("/root/init/send/info/pid");
  1798. var sOrdDD = model.getValue("/root/init/send/info/orddd");
  1799. var sCretno = model.getValue("/root/init/send/info/cretno");
  1800. if (inqrflag == "F") {
  1801. var meddrid = model.getValue("/root/main/judgdetl/medinfo/item/meddrid");
  1802. if(meddrid == "") { // 진찰의 체크
  1803. messageBox("진찰의를 ", "C001");
  1804. return ;
  1805. }
  1806. if(messageBox("진찰 정보를" , "Q002") == 6 ) {
  1807. model.makeValue("/root/init/send/info/meddd" , model.getValue("/root/main/judgdetl/medinfo/item/meddd"));
  1808. model.makeValue("/root/init/send/info/medtm" , model.getValue("/root/main/judgdetl/medinfo/item/medtm"));
  1809. model.makeValue("/root/init/send/info/meddrid", model.getValue("/root/main/judgdetl/medinfo/item/meddrid"));
  1810. model.makeValue("/root/init/send/info/medseq", model.getValue("/root/main/judgdetl/medinfo/item/medseq"));
  1811. model.makeValue("/root/init/send/info/remedyn", model.getValue("/root/main/judgdetl/medinfo/item/remedyn"));
  1812. model.makeValue("/root/init/send/info/inqrflag", inqrflag);
  1813. model.makeValue("/root/init/send/info/execflag", model.getValue("/root/main/judgdetl/medinfo/item/execflag"));
  1814. copyNodesetType("/root/send/savedata","/root/init/send/info","replace");
  1815. model.makeValue("/root/send/savedata/savepast" , grd_medinqrlst.getUpdateData() );
  1816. if (submit("TXAHA04421")) {
  1817. fGetJudgDetlInfo( sRsrvdd, sRsrvno , sPkgnm, sPid, sOrdDD , sCretno );
  1818. }
  1819. }
  1820. } else if (inqrflag == "G") {
  1821. //판정내역
  1822. var rsrvdd = model.getValue("/root/init/send/srchrsrvdd");
  1823. if( rsrvdd == "") {
  1824. messageBox("판정대상내역을 ", "C002");
  1825. model.setFocus("cmb_srchrsrvdd");
  1826. return ;
  1827. }
  1828. var judgdrid = model.getValue("/root/main/judgdetl/judginfo/judg/judgdrid");
  1829. if(judgdrid == "" || judgdrid == "-") {
  1830. messageBox("판정의사를","C002");
  1831. return;
  1832. }
  1833. // var judgflag = model.getValue("/root/main/judgdetl/judginfo/judg/judg1/judgflag");
  1834. // if(judgflag == "") {
  1835. // messageBox("판정구분을","C002");
  1836. // return;
  1837. // }
  1838. copyNodesetType("/root/send/savedata", "/root/init/send/info", "replace");
  1839. model.makeValue("/root/send/savedata/judgdd" , model.getValue("/root/main/judgdetl/judginfo/judg/judgdd"));
  1840. model.makeValue("/root/send/savedata/judgdrid" , model.getValue("/root/main/judgdetl/judginfo/judg/judgdrid"));
  1841. model.makeValue("/root/send/savedata/judgflag" , "A");
  1842. model.makeValue("/root/send/savedata/judgcnts", "");
  1843. // model.makeValue("/root/send/savedata/judgflag" , judgflag);
  1844. // if(judgflag == "A") {
  1845. // model.makeValue("/root/send/savedata/judgcnts" , model.getValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsa"));
  1846. // }else if(judgflag == "B") {
  1847. // if(model.getValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsb") == "") {
  1848. // messageBox("판정 내용을 입력하세요." , "");
  1849. // return;
  1850. // }
  1851. // model.makeValue("/root/send/savedata/judgcnts" , model.getValue("/root/main/judgdetl/judginfo/judg/judg1/judgcntsb"));
  1852. // }
  1853. model.makeValue("/root/send/savedata/judgstat" , "1")
  1854. if(submit("TXAHA04412")) {
  1855. copyNodesetType("/root/send/savedata","/root/init/send/info", "replace");
  1856. model.makeValue("/root/send/savedata/judginqr" , grd_judginqrlst.getUpdateData());
  1857. if(submit("TXAHA04411")) {
  1858. fGetJudgDetlInfo( sRsrvdd, sRsrvno , sPkgnm, sPid, sOrdDD , sCretno );
  1859. }
  1860. }
  1861. } else if (inqrflag == "E") {
  1862. //판정내역
  1863. var rsrvdd = model.getValue("/root/init/send/srchrsrvdd");
  1864. if( rsrvdd == "") {
  1865. messageBox("판정대상내역을 ", "C002");
  1866. model.setFocus("cmb_srchrsrvdd");
  1867. return ;
  1868. }
  1869. if( messageBox("판정문진내역을 ", "Q002") !=6) return ;
  1870. copyNodesetType("/root/send/savedata","/root/init/send/info", "replace");
  1871. model.makeValue("/root/send/savedata/judginqr" , grd_apntinqrlst.getUpdateData());
  1872. if(submit("TXAHA04411")) {
  1873. fGetJudgDetlInfo( sRsrvdd, sRsrvno , sPkgnm, sPid, sOrdDD , sCretno );
  1874. }
  1875. }
  1876. // if(submit("TXAHA04311")) {
  1877. //
  1878. // fGetMedPatList();
  1879. // // 진찰 정보 수정
  1880. // fSetMedInfo();
  1881. //
  1882. // };
  1883. ]]>
  1884. </script>
  1885. </button>
  1886. </group>
  1887. </xhtml:body>
  1888. </xhtml:html>